Utilities Reference
Utilities Reference
Utilities Reference
出版编号
PLM00036 J1
所有权及有限权利声明
所有权及有限权利声明 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
harvest_mmv_index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-1
索 引 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 索 引 -1
login. However, there are several stand-alone utilities such as install and
clearlocks that also require that the entire Teamcenter environment be set.
If you are using Teamcenter Integration for NX, you must enter the following
commands at the command line prompt:
set UGII_BASE_DIR=path to where NX6 is installed
set UGII_ROOT_DIR=%UGII_BASE_DIR%\ugii
set PATH=%UGII_ROOT_DIR%;%PATH%
The following procedures use default path names. If other path names
were specified during Teamcenter installation, use those path names
instead. Consult your administrator for additional information.
C shell:
setenv TC_ROOT /usr/tc2007
setenv TC_DATA /usr/tc2007/tcdata
source $TC_DATA/tc_cshvars
The following procedures use default path names. If other path names
were specified during Teamcenter installation, use those path names
instead. Consult your administrator for additional information.
System log files and application log files are stored in different directories
and controlled by different preferences. Site preferences control system
log files and are write protected. Site preferences must be set in the
tc_preferences.xml preference file stored in the TC_DATA directory. Various
user, group, and role preferences control application log files. These
preferences can be managed using the Options dialog box, accessed from the Edit
menu. Use the Options dialog box to search for preferences, set preference
values, create new preferences, and remove existing preferences.
For additional information about using this dialog box, see the Rich Client
Interface Guide.
Best practices
Siemens PLM Software recommends that old log files be deleted. Log files can
consume large amounts of hard disk space. Log file size should be monitored
periodically and old log files deleted to recover hard disk space. Any required
new log files can be recreated after old log files are deleted. Log files can
be deleted while users are logged on to Teamcenter.
Siemens PLM Software recommends that directory write permissions are left
open. It is extremely important to ensure that directories used to store log
file have the required write permissions at all times. For example, it is
especially important that Teamcenter be able to write to the $TC_LOG directory
if any system logging is enabled. Otherwise, the system repeatedly attempts to
write to this directory and performance is affected.
For information about log files, see the System Administration Guide.
o dataset type
o tool creation
o tool deletion
o volume creation
o volume deletion
o modificaiton
o move
o grant access
o revoke access
• installdate-time.log
Installation log file (install .log)
This log file is in the install directory under the application root
directory. The date-time stamp represents the date and time Teamcenter
Environment Manager was run. For example, install0522241627.log indicates
that Teamcenter Environment Manager was run at 4:27 on February 24, 2005.
The protected TC_Installation_Logging site preference enables installation
logging.
• tc_install.log)
POM utilities log file (tc_install.log
tc_install.log
Contains the standard output from the POM utilities called by Teamcenter
Environment Manager. This log file is in the logs directory under the
application root directory. The logs directory also contains the logs
syslogs) for utilities that Teamcenter
(and when POM utilities fail, syslogs
Environment Manager calls.
• security.log)
Security log file (security.log
security.log
Contains a record of attempted protection violations by users. For example,
logs are kept of attempts to open a dataset without read permission on
that dataset.
The protected TC_Security_Logging site preference enables security logging.
Security logging creates a record of invalid access of Teamcenter objects
and writes the data to the $TC_LOG/security.log file. Enabling security
logging also requires creating a file named security.log in the TC_DATA
directory. The system first checks for the existence of this file; if it
exists, it checks the value of this preference. If set to ONON, security
logging is enabled.
• system.log)
System log file (system.log
system.log
Contains a record of global system events such as database shutdowns and
system startup.
The protected TC_System_Logging site preference enables system logging.
controls the logging of journal files. syslog files are always created and
can not be suppressed.
Each application log file name is a concatenation of the application name,
the OS process ID (PID), and a descriptive file extension. This ensures
application log file names are unique for each session and prevents overwriting
valuable troubleshooting information. The following is an example of Structure
Manager log file names:
PSEPID.jnl
PSEPID.log
PSEPID.syslog
The following application log files are used by Siemens PLM Software support
and development to troubleshoot and debug Teamcenter:
• .jnl)
Journal files (.jnl
.jnl
Contains diagnostic information and is intended for Siemens PLM Software
use only.
• .syslog)
Syslog files (.syslog
.syslog
Contains diagnostic information and is intended for Siemens PLM Software
use only.
• .log)
Object log files (.log
.log
Contains a record of Teamcenter objects (users, groups, volumes, and so on)
created, modified, or deleted during the application session.
You can update the encrypted Teamcenter user password using TEM or the
install utility. However, this does not change the password in the
Teamcenter database. This must be done manually.
The file must contain only the password. Do not include user names or other
text. The password must be one line; new lines and carriage returns are
considered a terminator. The password must also be in character encoding
consistent with the processes reading it.
You must place the file on a local disk to ensure that access control is
managed securely by the operating system representing the file.
• To prepare the password file on UNIX, run chmod 400 file-name.
• To prepare the password file on Windows, right-click the file and choose
Properties, and then click the Security tab and ensure that Administrators
Properties
is the only group with read access on the local machine.
Note
File access control becomes complicated when mapping between UNIX and
Windows platforms.
• On UNIX, do not place the password file on disks mounted from other
machines. You can run df to obtain a list of such disks.
• TC_Journalling preference
Globally enables or suppresses creation of all journal files independently
of monitor and syslog files. This command can also be set in the rich
client interface using the Edit→Options command.
Syntax definitions
This manual uses a set of conventions to define the syntax of Teamcenter
commands, functions, and values. Following is a sample syntax format:
Bold Bold text represents words and symbols you must enter exactly
as shown.
For example, you enter verify_tasks exactly as shown.
Italic Italic text represents values that you supply.
For example, you supply your values for user-ID, password and
group-name.
| A vertical bar (also called a pipe) represents a choice between
mutually exclusive elements.
For example, you must specify either the list value or the
delete value for the -m argument.
[ ] Brackets represent optional elements.
-g=, -m= and -h arguments are optional.
For example, the -g=
(Arguments not in brackets are mandatory. For example, the -u=
argument is required.)
{text} Braces surround mutually exclusive elements that are required.
For example, a password value is required. You must use either
the -p= or -pf= argument.
... An ellipsis indicates that you can repeat the preceding element.
text-text A hyphen separates two words that describe a single value.
For example, group-name indicates that you input a single value.
Preference management
preferences_manager
Migrates legacy preference files to the database. In addition, this utility
can be used to convert legacy preference files to XML format and to import
and export preferences to and from the database.
Syntax
preferences_manager
-u=user-name
-p=password | -pf=password-file}
{-p=
-g=group-name
append | category | cleanup | cleanup_definitions | clear | export |
-mode= {append
upgradexml}
generatexml | import | migrate | delete | remove | upgradexml
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user’s password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-mode=append
Appends specified values to an existing preference in the database.
For more information about syntax specific to this mode, see -mode=append.
-mode=category
Manages preference categories. The list of categories is separated by a
delimiter using the delimiter option. The default delimiter is a comma.
For more information about syntax specific to this mode, see -mode=category.
-mode=cleanup
Removes stale preferences not removed by other administrative tasks.
For more information about syntax specific to this mode, see -mode=cleanup.
-mode=cleanup_definitions
Deletes redundant preference definitions from the preference definition file
stored in the database.
Redundant preference definitions are created when a saved query is performed
*_query_*.
in Teamcenter Engineering. Such preferences are named *_query_*
For more information about syntax specific to this mode, see
-mode=cleanup_definitions.
-mode=clear
Removes all preferences of the specified scope.
For more information about syntax specific to this mode, see -mode=clear.
-mode=export
Exports scope-based preferences to a specified output file.
For more information about syntax specific to this mode, see -mode=export.
-mode=generatexml
Converts a specified legacy preference file to XML format in the specified
output location.
For more information about syntax specific to this mode, see -mode=generatexml.
-mode=import
Imports a specified XML or legacy preference file into the database.
For more information about syntax specific to this mode, see -mode=import.
-mode=migrate
Migrates preferences from legacy preference files into the database.
For more information about syntax specific to this mode, see -mode=migrate.
-mode=delete
Deletes the specified non-foundation preference definitions from the system.
Foundation preferences are the ones available from a basic Teamcenter
installation.
For more information about syntax specific to this mode, see -mode=delete.
-mode=remove
Removes specified preferences of the specified scope from the database.
For more information about syntax specific to this mode, see -mode=remove.
-mode=upgradexml
Upgrades a preference file from a specified format to the current format.
For more information about syntax specific to this mode, see -mode=upgradexml.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
Creation and deletion of preferences is governed by the following rules:
• If you are a user, you can only create or delete user preferences.
• If you are a group administrator, you can create or delete group, role,
and user preferences.
• If you are a site administrator, you can create or delete site, group,
role, and user preferences.
Examples
• To migrate the legacy site, user, role, and group preferences files, enter
the following command on a single line:
preferences_manager -u=user-id -p=password -g=dba
-mode=migrate -dir=some-directory
• To generate the site preferences XML file from the legacy site preference
file, (can be a site, user, role, or group), enter the following command
on a single line:
preferences_manager -u=user-id -p=password -g=dba
-mode=generatexml -context=Teamcenter
-file=legacy-preference-file -out_file=C:\temp\site_pref.xml
• To import the site preferences in an XML file, skipping the processing for
all preferences in the XML file that exist in the database, enter the
following command on a single line:
preferences_manager -u=infodba -p=password -g=dba -mode=import -scope=SITE
-file=C:\temp\site_pref.xml -action=SKIP
• smith, enter
To export all user preferences in the database for the user smith
the following command on a single line:
preferences_manager -u=smith -p=password -g=design -mode=export
-scope=USER -out_file=C:\temp\smith.xml
Note
• To export all group preferences in the database for the logged-on group of
smith, enter the following command on a single line:
user smith
preferences_manager -u=smith -p=password -g=design
-mode=export -scope=GROUP -out_file=C:\temp\design.xml
• For the system administrator to export user preferences for Teamcenter user
smith, enter the following command on a single line:
smith
preferences_manager -u=infodba -p=password -g=dba
-mode=export -scope=USER -target=smith -out_file=c:\temp\some-file
-mode=generatexml -file=IMAN_DATA\gpfiles\design.iman_env
-scope=GROUP -out_file=C:\temp\design.xml
This command can be executed by any user, but the actual import is governed
by the user's privileges.
• For the system administrator to remove the pref1 and pref2 preferences for
smith, enter the following command on a single line:
the user smith
preferences_manager -u=infodba -p=infodba -g=dba
-mode=remove -scope=USER -target=smith -preferences=pref1,pref2
• For the system administrator to remove the pref1 and pref2 preferences for
the Engineering group, enter the following command on a single line:
preferences_manager -u=infodba -p=infodba -g=dba
-mode=remove -scope=GROUP -target=Engineering -preferences=pref1,pref2
• For the system administrator to append the HRN_Cavity value to the existing
Connection:HRN_Core,HRN_GeneralWire values on the Connected_ToRules
preference, enter the following command on a single line:
preferences_manager -u=infodba -p=infodba -g=dba
-mode=append -scope=SITE -preference=Connected_ToRules
-prefix=”Connection:” -values=”HRN_Cavity” -delimiter=”,”
-mode=append
Appends specified values to an existing preference in the database.
Syntax
preferences_manager
-u=user-name
-p=password | -pf=password-file}
{-p=
-g=group-name
-mode=append
-mode= append
SITE | GROUP | ROLE | USER
-scope= {SITE USER}
-preference= preference-name
-prefix=prefix-to-be-searched-in-value]
[-prefix=
-values= values-to-be-appended
-delimiter= delimiter-to-be-used-for-append
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user’s password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-mode=append
Appends specified values to an existing preference in the database.
-scope
Specifies the location to which the specified preferences are appended. It is
created in the specified location. Valid values are:
• SITE
Appends the values to preference at the site location. This means that the
logged-on user must be a system administrator.
• GROUP
Appends the values to the preference at the group location. This means
that the logged-on user must be a group administrator.
• ROLE
Appends the values to the preference at the role location. This means that
the logged-on user must be a group administrator.
• USER
Appends the values to the preference at the user location.
Note
In all these cases, if the preference does not exist at the location,
the preference instance is created at the location with the specified
value.
-preference
Specifies the preference to be used for append. If the preference is not
found, it is created only if already defined in the database, and only if its
protection scope allows for a definition at the given location.
-prefix
Specifies the prefix to be searched in the values. If the prefix is found, the
value is appended to it. If the prefix is not specified, values separated by
the delimiter are appended individually to the end of the values list.
-values
Specifies the values to append to the existing preference values.
-delimiter
Specifies the delimiter between the values.
-h
Displays help for this utility.
-mode=category
Manages preference categories. The list of categories is separated by a
delimiter using the delimiter option. The default delimiter is a comma.
Syntax
preferences_manager
-u=user-name
-p=password | -pf=password-file}
{-p=
-g=group-name
-mode=category
-mode= category
-action= CREATE
-categories= category-names
-delimiter=delimiter-used-between-categories]
[-delimiter=
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user’s password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-mode=category
Manages preference categories.
Note
-action
Specifies the action performed upon the category. The only valid value is
CREATE.
CREATE
Note
You can delete categories from the Options dialog box in the rich client.
-categories
Specifies categories to be created. Categories can be separated by a specified
delimiter.
-delimiter
Specifies the delimiter used between categories. If not specified, the default
delimiter is a comma.
-h
Displays help for this utility.
Restrictions
Only system administrators can create new categories using the -mode=category
option.
-mode=cleanup
Removes stale preferences not removed by other administrative tasks.
Syntax
preferences_manager
-u=admin-username
-p=password | -pf=password-file}
{-p=
-g=admin-group
-mode=cleanup
-mode= cleanup
-target= {user-ID | role-ID | group-ID}]
[-target=
-dry_run]
[-dry_run
-dry_run
-exception_file= path to the exception file]
[-exception_file=
-report_file=full-path-to-report-file]
[-report_file=
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user’s password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-mode=cleanup
Deletes redundant preferences.
Note
-target
Specifies the user or role or group ID whose preferences are to be deleted.
Must be a valid user, role or group ID.
If not specified, the cleanup applies to all preferences (including the site
location).
-dry_run
If specified, no preferences are removed.
The system only parses the preferences to be removed and prints the findings
in the specified report file.
-exception_file
Specifies the full path to the file that contains names of preferences (one
per line) that are to be excluded from the cleanup operation. The information
can be obtained from a run in dry_run mode.
If the argument is not specified, the system deletes all redundant preferences.
-report_file
Specifies the full path to the file containing logging information on the task.
If the argument is not provided, the system creates a default file.
-h
Displays help for this utility.
-mode=cleanup_definitions
Deletes redundant preference definitions from the preference definition file
stored in the database.
Redundant preference definitions are created when a saved query is performed
in Engineering Process Management. Such preferences are named *_query_*.
Syntax
preferences_manager
-u=user-name
-p=password | -pf=password-file}
{-p=
-g=group-name
-mode=cleanup_definitions
-mode= cleanup_definitions
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user’s password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-mode=cleanup_definitions
Deletes redundant preference definitions from the preference definition file
stored in the database.
-h
Displays help for this utility.
-mode=clear
Removes all the preferences in the database for the specified scope and/or
targets.
Syntax
preferences_manager
-u=user-name
-p=password | -pf=password-file}
{-p=
-g=group-name
-mode=clear
-mode= clear
-scope= {SITE
{[-scope= SITE | GROUP | ROLE | USER
USER]
-target=user-ID | role-ID | group-ID]
[-target=
|
-u_target= list-of-user-IDs] [-r_target=
[-u_target= -r_target= list-of-role-IDs]
-g_target= list-of-group-IDs]]
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user’s password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-mode=clear
Removes all preferences of the specified scope.
For more information about syntax specific to this mode, see -mode=clear.
Note
-scope
Specifies the location from which the specified preferences are cleared. It is
created in the specified location. Valid values are:
• SITE
Clears only site overlay preferences (that is, only the site preferences
that have been modified at a site). This means that the logged-on user
must have system administrator privileges.
• GROUP
Clears all the group preferences of the current logged-on group.
• ROLE
Clears all the role preferences of the current logged-on role. This means
that the logged-on user must have group administrator privileges.
• USER
Clears all the user preferences of the current logged-on user.
-target
Specifies the user or role or group ID of the user whose preferences are
to be cleared.
This option can only be used with the -scope option.
-u-target
Specifies the list of users for which all preference instances are to be
cleared. It cannot be used with the -scope argument but can be used with the
-r_target and -g_target arguments. Entries are the IDs of users (separated by
a comma) for which the logged-on user has privileges.
-r-target
Specifies the list of roles for which all preference instances are to be
cleared. It cannot be used with the -scope argument but can be used with the
-u_target and -g_target arguments. Entries are the IDs of roles (separated by
a comma) for which the logged-on user has privileges.
-g-target
Specifies the list of groups for which all preference instances are to be
cleared. It cannot be used with the -scope argument, but can be used with the
-r_target and -u_target arguments. Entries are the IDs of groups (separated by
a comma) for which the logged-on user has privileges.
-h
Displays help for this utility.
-mode=export
Exports scope-based preferences to a specified output file.
Syntax
preferences_manager
-u=user-name
-p=password | -pf=password-file}
{-p=
-g=group-name
-mode=export
-mode= export
-scope= {SITE
[-scope= SITE | GROUP | ROLE | USER
USER}]
-target= {user-ID | role-ID | group-ID}]
[-target=
-file=input-file]
[-file=
-categories=comma-separated-categories]
[-categories=
-delimiter=value-delimiter]
[-delimiter=
-out_file=output-file-name]
[-out_file=
[-report_file= full-path-to-report-file]
-report_file=
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user’s password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-mode=export
Exports scope-based preferences to a specified output file.
Note
-scope
Specifies the location to which the specified preferences are exported. It is
created in the specified location. Valid values are:
• SITE
Only the site preferences matching the specified criteria are considered
for export.
• GROUP
Only the group preferences (of the current logged-on group) matching the
specified criteria are considered for export
• ROLE
Only the role preferences (of the current logged-on role) matching the
specified criteria are considered for export
• USER
Only the user preferences (of the current logged-on user) matching the
specified criteria are considered for export.
-target
Specifies the user or role or group ID whose preferences are to be exported.
Must be a valid user, role or group ID.
If not specified, the export applies to all preferences (including the site
location).
-file
Input file specifying the preferences to be exported. This file contains the
preference names (in each line). For example:
Item_show_relations
Item_DefaultChildProperties
-categories
Specifies the categories to export. Categories are a comma-separated list,
unless a different delimiter is provided with the -delimiter option. This
option is ignored if the -file option is provided.
-delimiter
Specifies the delimiter to be used for the categories. The default delimiter
is a comma if the -delimiter option is not specified.
-out_file
Specifies the file to which preferences are exported. The output is generated
in XML format.
-report_file
Specifies the file that contains logging output. If not specified, a default
file is created in the current directory.
-h
Displays help for this utility.
-mode=generatexml
Converts a specified legacy preference file to XML format in the specified
output location.
Syntax
preferences_manager
-u=user-name
-p=password | -pf=password-file}
{-p=
-g=group-name
-mode=generatexml
-mode= generatexml
-file=file-containing-preferences
-context= Teamcenter | NXManagerUnigraphics
-out_file= output-file-name
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user’s password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-mode=generatexml
Converts a specified legacy preference file to XML format in the specified
output location.
Note
-file
Specifies the preference file containing the preferences to be converted.
-context
Specifies the context. Valid values are:
• Teamcenter
• NXManagerUnigraphics
-out_file
Specifies the file to which the converted preferences are exported.
-h
Displays help for this utility.
-mode=import
Imports a specified XML or legacy preference file into the database.
Syntax
preferences_manager
-u=user-name
-p=password | -pf=password-file}
{-p=
-g=group-name
-mode=import
-scope= {SITE
{[-scope= SITE | GROUP | ROLE | USER
USER]
-target= {user-ID | role-ID | group-ID}]
[-target=
|
-u_target= list-of-user-IDs] [-r_target=
[-u_target= -r_target= list-of-role-IDs]
-g_target=list-of-group-IDs
[-g_target=
|
-file=input-file] [-preview
[-file= -preview]
-preview
-categories=categories-to-import] [-delimeter=
[-categories= -delimeter=delimiter]
|
-preference=preference-name] [-values=
[-preference= -values=comma-separated-values]
-delimeter=delimiter]}
[-delimeter=
-protection_scope= default-protection-scope] [ -enable_environment= activate]
[-protection_scope=
SKIP | OVERRIDE | MERGE }
-action= {SKIP
-report_file= file-name
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user’s password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-mode=import
Imports a specified XML or legacy preference file into the database.
-target
Specifies the user or role or group ID whose preferences are to be imported.
Must be a valid user, role or group ID.
If not specified, the import applies to all preferences (including the site
location).
-u-target
Specifies the list of users whose preference instances are to be imported.
This argument can be used with the -r_target and -g_target arguments. Entries
are the IDs of users (separated by a comma) for which the logged-on user
has privileges.
-r-target
Specifies the list of roles whose preference instances are to be imported.
This argument can be used with the -u_target and -g_target arguments. Entries
are the IDs of roles (separated by a comma) for which the logged-on user
has privileges.
-g-target
Specifies the list of groups whose preference instances are to be imported.
This argument can be used with the -r_target and -u_target arguments. Entries
are the IDs of groups (separated by a comma) for which the logged-on user
has privileges.
-preference
Specifies the preference name that has to be imported to the database. This
works only when the -file option is not specified. The preference must have
already been defined in the system for this option to work.
-scope
Specifies the modified (if needed) protection scope to give to the preference
-preference option when the preference is a hierarchical
specified in the-preference
preference already defined in the database, and when the logged-on user is a
system administrator. Valid values are:
• SITE
Clears only site overlay preferences (that is, only the site preferences
that have been modified at a site). This means that the logged-on user
must have system administrator privileges.
• GROUP
Clears all the group preferences of the current logged-on group.
• ROLE
Clears all the role preferences of the current logged-on role. This means
that the logged-on user must have group administrator privileges.
• USER
Clears all the user preferences of the current logged-on user.
-enable_env
Activates the specified environment.
-values
Specifies the values for the preference specified in the -preference option.
This can be comma-separated values if the -delimiter option is not specified.
In order to specify a delimiter other than comma, use the -delimiter option.
This option is valid only with the -preference option. If needed, values can
value".
be surrounded by double quotation marks. For example, "my value"
-delimiter
Specifies the delimiter to be used either for the values (when used in
conjunction with the -values option) or for the categories (when used with
the -categories option. The default delimiter is comma if the -delimiter
option is not specified.
-categories
Specifies the categories to import. Categories are a comma-separated list,
unless specified through the -delimiter option.
-action
Indicates the action to be taken if a preference exists in the database with a
different value. Valid values are:
• SKIP
The preference values in the database are untouched.
• OVERRIDE
The preference values in the database are overridden with the new values
in the input file
• MERGE
Merges the values in the database with the values in the input file (that
is, the union of values in the database and input file).
-report_file
Specifies the file that to which import results are logged. If not specified,
a default file is created. The report file logs the following results:
• That the import file contains only user scope-protected preferences.
• That the import file contains preferences that are not yet declared
at the site level. These preferences were not imported for the given
users/roles/groups (and a warning is printed in the output report).
-h
Displays help for this utility.
-mode=migrate
Migrates preferences from legacy preference files into the database.
Syntax
preferences_manager
-u=user-name
-p=password | -pf=password-file}
{-p=
-g=group-name
-mode=migrate
-mode= migrate
-dir=directory
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user’s password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-mode=migrate
Migrates the preferences to the database.
-dir
Points to the directory containing the legacy site, group, role and user
preference files. If the directory contains the legacy site preference file,
all preferences in this file are migrated to the database. Additionally, the
following rules apply for migrating user, role, and group preferences.
• TC_GROUP_PFILE, TC_ROLE_PFILE and TC_USER_PFILE environment
If the TC_GROUP_PFILE
variables are set, then the legacy files for group, role, and user are
picked up from these directories.
• If these environment variables are not specified and the directory supplied
fpfiles, rpfiles and upfiles subdirectories, they are used for
contains the fpfiles
migration. To import all of the site, user, role and group preferences,
the user must be a system administrator.
-h
Displays help for this utility.
-mode=delete
Deletes the specified non-foundation preference definitions from the system.
Foundation preferences are the ones available from a basic Teamcenter
installation.
Syntax
preferences_manager
-u=user-name
-p=password | -pf=password-file}
{-p=
-g=group-name
-mode=delete
-mode= delete
-preferences=preference_name–1,preference-name–2, ..., preference-name-n |
[-preferences=
-exception_file= exception-file-name]
-file=file-name]
[-file=
-dry_run]
[-dry_run
-dry_run
-report_file= report-file-name]
[-report_file=
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user’s password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-mode=delete
Removes the specified non-foundation preference definitions from the system.
You can supply the preference names in a file or on the command line. If you
do not supply either, all non-foundation preferences are deleted.
Note
-preferences
Specifies a command separated list of preference names to delete from the
database. Cannot contain foundation preference names. This argument cannot be
used when the -exception_file argument is specified.
-exception_file
Specifies the full path and name of a file that contains names of preferences
that are excluded from the delete operation. This argument cannot be used when
the -preferences argument is specified. Each preference name to be excluded
must be on a separate line in the file.
-file
Contains a list of preferences to be deleted. Each preference name must be on
a separate line in the file.
Note
-dry_run
Provides a report of the delete operation but does not actually delete the
preferences.
-report_file
Full path and file name of the file that contains the log information for the
utility. If you do not specify this argument, the utility creates a file
using a default path and file name.
-h
Displays help for this utility.
-mode=remove
Removes the specified preference instances from the specified location in
the database.
Syntax
preferences_manager
-u=user-name
-p=password | -pf=password-file}
{-p=
-g=group-name
-mode=remove
-mode= remove
-scope= {SITE
{[-scope= SITE | GROUP | ROLE | USER
USER}]
-target= {user-ID | role-ID | group-ID}] |
[-target=
-u_target= list-of-user-IDs] [-r_target=
[-u_target= -r_target= list-of-role-IDs]
[-g_target= list-of-group-IDs]}
-g_target=
-preferences=preference-name]
[-preferences=
-file=file-name]
[-file=
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user’s password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-mode=remove
Removes the specified preference instances from the specified location in
the database.
Note
-scope
Specifies the location under which the preference instances are deleted.
This option may be used with the -target option, but never with any of the
-u_target, -r_target or -g_target options. This option can accept one of
-u_target
the following keywords:
• SITE
Removes the specified preferences if they exist in the current logged-on
group preferences list. This means that the logged-on user must have group
administrator privileges.
• GROUP
Removes the specified preferences if they exist in the current logged-on
group preferences list. This means that the logged-on user must have group
administrator privileges.
• ROLE
Removes the specified preferences if they exist in the current logged-on
role preferences list. This means that the logged-on user must have group
administrator privileges.
• USER
Removes the specified preferences if they exist in the current logged-on
user preferences list.
Note
-target
Specifies the user or role or group ID whose preferences are to be removed.
Must be a valid user, role or group ID.
If not specified, the removal applies to all preferences (including the site
location).
-preferences
Specifies comma-separated preference names for which the preference instances
are to be deleted from the database under the specified locations.
-file
Contains a list of preferences to be deleted. Each preference should be on
a separate line in the file.
Note
-h
Displays help for this utility.
-mode=upgradexml
Upgrades a preference file from a specified format to the current format. The
upgrade_preferences_file.pl perl script can also be used to perform these
actions.
For more information about the administering preferences, see the Application
Administration Guide
Syntax
preferences_manager
-u=user-name
-p=password | -pf=password-file}
{-p=
-g=group-name
-mode=upgradexml]
[-mode=upgradexml
-mode=upgradexml
-input_file= path-to-input-file
-definition_information= path-to-information-file
-separator=separator-used-in-information-file ]
[-separator=
-default_protection_scope= {SITE
[-default_protection_scope= SITE | GROUP | ROLE | USER
USER} ]
-default_env_variable_status= true false}
[-default_env_variable_status= {true | false ]
-correct_errors]
[-correct_errors
-correct_errors
-output_file=path-to-output-file
-report_file=path-to-report-file
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user’s password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
-input_file
Specifies the full path to the preferences file to be updated. If the file
is in the format of a previous Teamcenter release, the output file is in the
current format. If the file is in the current format, the output file is in
the current format and the information updated using the file specified by the
defintion_information argument. This is useful to update the preference file
from an external text file.
-definition_information
Specifies the full path to the text file containing information about updated
preferences using the file passed in the desired protection scope and the
desired environment variable status. If the file is in the format of a previous
Teamcenter release, the output file is in the current format.
The content of the text file is in the format:
preference-name;protection-scope;environment-variable-status
The content of the definition information text file must be in the format:
preference-name;protection-scope;environment-variable-capability
The protection-scope and environment-variable-capability settings are optional.
If these values are not specified, the values of the -default_protection_scope
and -default_env_variable_status arguments are used.
Valid values for the protection-scope setting are User
User, Role
Role, Group
Group, Site
Site,
System.
or System
Valid values for the environment-variable-capability setting are true
(indicating that the preference can also be set using an environment variable)
false.
or false
For example:
prefA;User;false
prefB;Role;
prefC;Site
prefD;false
Tip
-separator
Specifies the string used between each field in the file specified in the
definition_information parameter. If not given, the character ; is assumed
to be the separator.
-default_protection_scope
Specifies the default protection scopes to preferences not listed in the
file specified in the definition_information parameter, or when the supplied
information is incorrect or absent. Valid values are:
• SITE
Upgrades the specified values to preferences at the site location. Only
users logged on as system administrators can upgrade these preferences.
• GROUP
Upgrades the specified values to preferences at the site location. Only
users logged on as group administrators can upgrade these preferences.
• ROLE
Upgrades the specified values to preferences at the site location. Only
users logged on as role administrators can upgrade these preferences.
• USER
Upgrades the specified values to preferences at the site location. Only
users logged on as system administrators can modify these preferences.
Note
• SYSTEM
Upgrades the specified values to preferences at the system location. Only
users logged on as system administrators can upgrade these preferences.
-default-env-variable-status
Specifies the default value for the envEnabled attribute to apply to the
preferences either not listed in the file specified in the defnition_information
• true
-correct_errors
Corrects errors encountered whenever possible. Types of errors that can
be corrected include incorrect types, array status, protection scope, and
category errors. Errors that must be manually corrected are indicated in
the report file.
-output_file
Specifies the full path to the output file containing the updated preferences.
If the file already exists, it is overwritten.
-report_file
Full path to the file containing logging information about the upgrade task.
If the argument is not provided, the system creates a default file.
-h
Displays help for this utility.
am_install_tree
Installs an Access Manager (AM) rule tree at your site. Teamcenter supplies a
default rule tree that provides a starting point for creating rules at your
site. If you do not specify the [operation] option, it imports a rule tree. In
that case, the [mode] option is required.
Syntax
am_install_tree -u=user-id {-p=
-p=password | -pf=password-file} [-g=
-g=group]
-operation= import | export } ] -path=file-name [-mode=
-operation={import
[-operation= -mode={replace_all
-mode= replace_all |
no_replace}] -format=
replace_tree | no_replace -format={xml
xml | txt
txt} [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-operation
Specifies whether to import or export the rule tree file.
If you do not specify the [operation] option, am_install_tree assumes the
default of importing a rule tree. In that case, the [-mode] option is required.
=import Default mode. Imports a rule tree.
-format
Specifies one of the following file formats:
=xml
XML file format.
=txt
Text file format.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Return Values
Return value upon 0
success
Return value upon 1
failure
Example
export_rule.txt:
The following example exports the rule tree export_rule.txt
am_install_tree –u=tcadmin –p=tcadmin –g=admin –operation=export
–path=D:\export_rule.txt –format=txt
ada_util
Provides an alternate procedure to the user interface-based setting of
classification/clearance and license information so it can be called from
scripts. This utility supports the following authorized data access (ADA)
functions:
• set_classification
• set_clearance
• newlicense
• addlicense
• modlicense
• adduser
• adduser
For more information about ADA licenses, see the Authorized Data Access
License Guide.
Syntax
-u=user-id -p=password | -pf=filename g=group]
ada_util [-u=
-setclassification
-c=classification
-item=item [-rev=
-rev=revision [-ot=
-ot=object-type -on=object-name]]
-type=[itar
-type= itar | ip
ip]
-setclearance
-c=clearance-level
-uid=user-id
-type=[itar
-type= itar | ip
ip]
-newlicense
-l=license-id
-d=date]
[-d=
-reason=reason]
[-reason=
-type=[itar
-type= itar | ip | exclude
[-type= exclude]
-lock_date=date]
[-lock_date=
-qualifying_cfr= string]
[-qualifying_cfr=
-category string]
-category=
[-category
-citizenships citizenship-list]
-citizenships=
[-citizenships
-addlicense
-l=license-id
-ead_paragraph= string]
[-ead_paragraph=
-item=item [-rev=
-rev=revision [-ot=
-ot=object-type -on=object-name]]
-modlicense
-l=license-id
-d=date
-lock_date=date]
[-lock_date=
-qualifying_cfr= string]
[-qualifying_cfr=
-category string]
-category=
[-category
-citizenships citizenship-list]
-citizenships=
[-citizenships
-adduser
-l=license-id
-uid=user
-addgroup
-l=license-id
-gid=group
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with IP Admin or ITAR Admin privilege
according to the classification/clearance or license type involved in the
operation. If this argument is used without a value, the operating system
user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-setclassification
-c,
Sets a classification for a given workspace object as specified by the -c
-item, -rev
-item -rev, -ot
-ot, -on , and -type arguments. This argument cannot be used with
the -setclearance argument.
-setclearance
-c, -uid , and -type
Sets a clearance level for a given user specified by the -c
arguments. This argument cannot be used with the -setclassification argument.
-newlicense
Creates a license with given ID using the -l and -type argument with the
optional -d expiration date, the optional -reason reason, the optional
-lock_date lock date, and the optional -qualifying_cfr string. The
-qualifying_cfr argument is applicable only to ITAR licenses. The -newlicense
argument cannot be used with the -addlicense and -modlicense arguments.
-addlicense
Adds the license identified using the -l argument to the object specified by
-item, -rev
-item -rev, -ot
-ot, and -on arguments. This argument cannot be used with the
-newlicense and -modlicense arguments.
Additionally, qualifying paragraph information can be supplied using the
-ead_paragraph argument.
-modlicense
Modifies a license identified using the -l argument to have a new expiration
date specified using the -d argument, a new lock date specified using the
-lock_date argument, and new qualifying Code of Federal Regulation (CFR)
information specified for licenses of ITAR type using the -qualifying_cfr
argument. This argument cannot be used with the -newlicense and -addlicense
arguments.
-adduser
Adds the user identified using the -uid argument to the license identified by
the -l argument.
-addgroup
Adds the group identified using the -gid argument to the license identified by
the -l argument.
-c
Specifies a classification or clearance according to context. Use with the
-setclassification argument to apply value given in this argument to a given
object; use with the -setclearance argument to apply the value to the given
user.
-item
Specifies the item to use in finding an object. See the description for the
-on argument.
-rev
Specifies the revision within a given item to use in finding an object. See
the description for the -on argument.
-ot
Specifies the object type to filter specification attachments of the given
item/revision when finding an object. See the description for the -on argument.
-on
Specifies an object to which the various ADA operations apply. The value should
be the object name, for example, a dataset name. This argument is required.
-item, -rev
This argument also requires the -item -rev, and -ot arguments to provide a
-item),
basis for finding the object; first, uniquely identifying the item (-item
-item
-rev),
second, identifying the specific revision of that item (-rev
-rev and third,
filtering objects attached to the item revision based on object type and
-ot).
name (-ot
-ot
• If you specify only the -item argument, the object is the item.
• If you specify the -item and -rev arguments, the object is the revision.
• -item, -rev
If you specify the -item -rev, and -ot arguments, the object is that named
with the type on the item revision.
-addlicense.
See -setclassification and -addlicense
-type
Specifies the license type as itar (International Traffic in Arms Regulations),
ip (intellectual property), or exclude (exclude license) to exclude certain
users who are not allowed to see the data.
itar, the -setclassification argument applies to
If -type is set to itar
gov_clearance.
gov_classification and the -setclearance argument applies to gov_clearance
ip, the -setclassification argument applies to
If -type is set to ip
ip_clearance.
ip_classification and the -setclearance argument applies to ip_clearance
ip.
The default value is ip
-uid
Specifies a user for the -setclearance and -adduser operations. This argument
-u.
should not be confused with the login user argument, -u
-l
-newlicense, -addlicense
Specifies a unique license ID for use with the -newlicense -addlicense, and
-modlicense arguments.
-d
Specifies a date for use in -newlicense and -modlicense operations.
The default date format is defined in timelocal.xml as
numericday-abbreviatedmonth-numericyear hours:minutes. hours are
in 24-hour format. For example, 11-dec-2006 15:20. The month names and default
date format may change with locale.
-reason
Specifies a string when using the -newlicense argument.
-lock_date
Enables authorized users to freeze or unfreeze the license specified by the
-l argument on the specified date. This argument can only be used with the
-newlicense or -modlicense arguments.
-qualifying_cfr
Specifies the information for the In Accordance With attribute (a string of 80
characters) for the ITAR_License object identified by the -l argument. This
argument can only be used in with the -newlicense or -modlicense arguments.
-category
Specifies the category type (a string of 128 bytes) for an ADA license. This
argument can only be used with the -newlicense or -modlicense arguments.
-citizenships
Specifies the user citizenships for an ADA license. Each citizenship is a
two-letter country code from ISO 3166. Multiple citizenships are separated by
a comma delimiter, such as:
—citizenships=US,GB
-ead_paragraph
Specifies the authorizing paragraph information (a string of 80 characters)
-item, -rev
recorded on the workspace object specified by -item -rev, -ot
-ot, and -on
arguments, while attaching an ITAR_License object identified by the -l
argument.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To set a classification of secret on the 1234/A UG master dataset attached
to the item 1234 revision A:
ada_util -u=user -p=pass -g=group -setclassification -c=secret
-item=1234 -rev=A -ot="UG Master" -on=1234/A -type=ip
• To apply the license001 license to the 1234/A dataset attached to item 1234
-rev,-ot
revision A without specifying the -rev -ot,
-ot and -on options:
ada_util -u=user -p=pass -g=group -addlicense
-l=license001 -item=1234
install_authorization_rules
Creates system-level administration authorization rules.
Syntax
-u=user-id {-p=
install_authorization_rules [-u= -p=password |
-pf=password-file} [-g=
-g=group]
-function {install
install | create | add | listaccessors | listapplications | listutilities
listutilities}
-name=application-or-utility-name]
[-name=
-ruledomain=rule-domain-value]
[-ruledomain=
-role=role-name]
[-role=
-group=group-name]
[-group=
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
function
Specifies one of the following functions:
install
Installs standard authorization rules for administration applications and
utilities.
create
Creates new authorization rules. If you specify this function, you must
include values for the name and ruledomain arguments.
add
Adds a new accessor to an existing authorization rule. If you specify
name, ruledomain
this function, you must include values for the name ruledomain, and
group arguments.
listaccessors
Lists accessors specified by the name and ruledomain arguments.
listapplications
Lists all application names for which rules are defined in the database.
listutilities
Lists all utility names for which rules are defined in the database.
-name
create,
Specifies the application or utility name. Use this argument with the create
add, or listaccessors functions.
add
-ruledomain
create,
Specifies the value of the rule domain. Use this argument with the create
add, or listaccessors functions.
add
-role
Specifies the role name.
-group
Specifies the group name. Use this argument with the add function.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• Install the default authorization rules for applications and utilities:
install_authorization_rules -u=infodba -p=infodba
-g=dba -install
• Add the GRP_1 group as a valid accessor for the APP_1 application:
install_authorization_rules -u=infodba -p=infodba
-g=dba -add -name=APP_1 -ruledomain=application -group=GRP_1
• List all application names for which rules are defined in the database:
install_authorization_rules -u=infodba -p=infodba
-listapplications
• List all utility names for which rules are defined in the database:
install_authorization_rules -u=infodba -p=infodba
-listutilities
install_callback
Registers the callbacks and persists them in the database.
Syntax
utility_name -u=user-ID {-p=
-p=password | -pf=password-file} [-g=
-g=group]
-mode={install
-mode install | create | modify | delete | list
[-mode list}]
-type=
-type
-library=
-library
-function=
-function
-name=
-name
-h]
[-h
-h
Arguments
-u
Specifies the user ID. The user must have administrative privileges.
If this argument is used without a value, the operating system user name
is used.
Note
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
-mode
Specifies the callback mode.
• install
Specifies the install mode.
• create
Specifies the create mode.
-type, -library
If running in this mode, specify -type -library, -function
-function, or -name
-name.
• modify
Specifies the modify mode.
-type, -library
If running in this mode, specify -type -library, -function
-function, or -name
-name.
• delete
Specifies the delete mode.
-name.
If running in this mode, specify -type or -name
• list
Specifies the list mode.
-type
create, modify
Specifies the type for the create modify, or delete mode.
-library
Specifies the library for the create or modify mode.
-function
Specifies the function for the create or modify mode.
-name
create, modify
Specifies the name for the create modify, or delete mode.
-h
Displays help for this utility.
install_vminfo_acl
Creates access control list (ACL) rules for migration of the existing
Teamcenter volume files. The Volume Management application introduces changes
to the Access Manager (AM) rule tree. This utility verifies whether the AM
HSM_Info and VM_Info
rule tree contains the required rules (HSM_Info VM_Info). If not, the
rules are added to inherit the access privileges of the named ACL POM Open
Access in par with the ImanFile object and saves the changes.
This utility runs automatically at install. Typically, there is no need for
administrators to run the utility again. In cases where an administrator has
overwritten the rule tree with custom rules, this utility can be run to ensure
the required rules are added to the rule tree.
Syntax
-u=user-id {-p=
install_vminfo_acl [-u= -p=password | -pf=password-file}
-g=group] [-v
[-g= -v] -h]
-v [-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-v
Verbose mode. Provides information about results and progress.
-h
Displays help for this utility.
Environment
• The generic command window set with all Teamcenter-related environments.
bmide_commontemplategenerator
Generates a common template between two or more sites and generates
site-specific templates for each site. Use this utility when you have multiple
sites containing custom data model. Previously, you had to manually analyze
the site templates generated at each site to create a common template. This
utility eliminates the manual work to create a template that contains custom
data model common to all sites.
Place template files in the following directory structure:
Arguments
-dir
Specifies the path of the directory where sites and templates folders are
located. The directory should contain a sites subdirectory that contains all
the site templates and dependency files and a templates subdirectory that
contains all the dependant templates. The sites and templates directories
should contain a lang subdirectory containing locale files.
-name
Specifies the name of the common template to be generated.
-displayname
Specifies the display name of the common template to be generated.
-outputdir
Specifies the path of the directory where the generated files are to be placed.
-h
Displays help for this utility.
Environment
As specified in the Manually configuring your environment for Teamcenter
utilities.
Files
As specified in the Log files produced by Teamcenter.
Restrictions
This utility has a requirement that a minimum of 1500 MB memory must be
allocated to the Java heap space. Before running the utility, set the following
environment variable:
set BMIDE_SCRIPT_ARGS=-Xmx1500M
For more information about the BMIDE_SCRIPT_ARGS environment variable, see the
Preferences and Environment Variables Reference.
Examples
bmide_commontemplategenerator -dir=c:\templates\temp
-name=commontemplate -displayname="Common Template"
-outputdir=c:\templates\temp\output
bmide_comparator
Compares two complete Teamcenter model files and generates a differences file.
This utility must be run with either the -schema or -all argument.
Syntax
-compare={schema
bmide_comparator -compare= all} -old=old-model-file-path
schema | all
-new=new-model-file-path -delta=differences-file-path
-log=log-file-path] [-h
[-log= -h]
-h
Arguments
-compare={schema
-compare= schema | all
all}
Compare data model. You must specify one of these options:
• schema
Compares only classes.
• all
Compares all elements.
-old
Specifies the file path and name of the file containing the old Teamcenter
model.
-new
Specifies the file path and name of the file containing the new Teamcenter
model.
-delta
Specifies the file path and name of the file into which data model differences
will be written.
-log
Specifies file path and name of the log file that contains the results of this
execution. This argument is optional.
-h
Displays help for this utility.
Environment
As specified in the Manually configuring your environment for Teamcenter
utilities.
Files
As specified in the Log files produced by Teamcenter.
Restrictions
None.
Examples
None.
bmide_consolidator
Consolidates all templates listed in the master file into a single file.
Syntax
bmide_consolidator -dir=master-file-directory -file=path-for-consolidated-file
-consolidate=[all
-consolidate= all | template | locale
locale]
-forceconsolidate
-version=version]
[-version=
-h]
[-h
-h
Arguments
-consolidate
all
Consolidates the template and its localization files.
template
Consolidates templates.
locale
Consolidates template localization files.
-dir
Specifies the directory path and name of the directory containing the
master.xml file and the list of template files to be consolidated.
-file
Specifies the file path and name of the file which will contain the
consolidated Teamcenter model.
-forceconsolidate
Indicates that localization files must be consolidated irrespective of what
is included in the master.xml file.
-version
Specifies version for the consolidated file. This argument is optional.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Restrictions
None.
Examples
None.
bmide_deployment_lock
Prevents simultaneous deployments to a database from any source, including
Teamcenter Environment Manager (TEM) and the Business Modeler IDE. Only
administrative users are allowed to run this utility.
Syntax
bmide_deployment_lock -u=user-id {-p=
-p=password | -pf=password-file} [-g=
-g=group]
-lock | -release | -query
-log=path]
[-log=
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. The file must be a single-line ASCII file
containing the password in clear text. Teamcenter Environment Manager prompts
you for a password and creates the password file during installation.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-lock
Sets the deployment lock. If one already exists, the utility returns an error
indicating a deployment is in process. If one does not exist, the utility sets
the deployment lock and returns success.
-release
Releases the deployment lock. If one already exists, the utility removes
the deployment lock and returns success. If one does not exist, the utility
returns success.
-query
Queries for the deployment lock. If one already exists, a -1 is returned. If
one does not exist, the utility returns success.
-log
Specifies the full path to the log file containing utility execution results.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
bmide_generatecode
Autogenerates C/C++ code for business objects and property operations from the
Business Modeler IDE.
Syntax
bmide_generatecode
-templateProj= source-template-project-input-location
-templateDeps= dependent-templates-input-location
-srcDir= skeleton-implementation-classes-output-location
-gensrcDir= autogenerated-classes-output-location
-makefileDir= root-makefile-output-location
all | service-libraries]
-serviceLibs=[all
-serviceLibs=
-log=log-output-file
-h]
[-h
-h
Arguments
-templateProj
Specifies the file path and name of the input location of the source template
project.
-templateDeps
Specifies the file path and name of the input location of the dependent
templates.
-srcDir
Specifies the file path and name of the output location of the skeleton
implementation classes. This argument is optional.
-gensrcDir
Specifies the file path and name of the output location for autogenerated
classes.
-makefileDir
Specifies the root file path of the output location for generated makefiles.
-serviceLibs
Generates code for all custom service libraries defined in the specified
Business Modeler IDE project. Specify a comma-delimited list of service
all, for example, -serviceLibs=all
library names or all -serviceLibs=all.
Before running this utility with the -serviceLibs argument, you must do the
following:
1. Set the JDK_HOME environment variable to point to the installed JDK
location.
-log
Specifies file path and name of the log file that contains the results of this
execution. This argument is optional.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
bmide_generatecode
-templateProj=D:\udu\meta_dev10\custom1
-templateDeps=D:\udu\meta_dev10\templates
-srcDir=D D:\udu\meta_dev10\custom1\src\server
-gensrcDir=D:\udu\meta_dev10\custom1\output\server\gensrc
-makefileDir=D:\udu\meta_dev10\wnti32\drv\core
-log=D:\udu\meta_dev10\CodeGenUtil.log
bmide_generate_compare_report
Reports the differences between two sets of data models. For example, you
can compare two Teamcenter database sites to determine if the data model
is the same in both sites. The report generated by this utility shows the
differences. You must provide two consolidated data model sources as input to
generate the report. (You cannot provide other source for input.)
You can also generate this report using the Business Modeler IDE.
For more information, see the Business Modeler IDE Guide.
Syntax
bmide_generate_compare_report
-file=consolidated-model-file
-comparefile= consolidated-model-file-to-compare
-reportfile= generated-report-file
-showequal=[true
-showequal= true | false
false]
-log=log-file
-h]
[-h
-h
Arguments
-file
Specifies the initial consolidated model file used to generate the report. A
consolidated model file can be obtained by running the business_model_extractor
utility to extract all the elements or by getting the model.xml file from the
TC_DATA\model directory of a Teamcenter database site.
-comparefile
Specifies the consolidated model file to be compared to the initial file
specified in the -file argument.
-reportfile
Specifies the file where the report is generated.
-showequal
Defines whether equal values from both data models are shown in the generated
false. The default value is false
report. The valid values are true or false false. If
true, the equal attributes are shown in the generated report.
the value is true
-log
Specifies the path of the log file containing results of the execution.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
bmide_generate_condition_report
Reports the details of a condition and all model elements that use it in a
set of data model. Conditions are attached to various business rules, LOVS,
and so on to define the behavior of Teamcenter. The generated report is a
single HTML page showing the model elements that refer to the condition. To
generate this report, you must provide a condition name and a consolidated
model file for the data model source.
You can also generate this report using the Business Modeler IDE.
For more information, see the Business Modeler IDE Guide.
Syntax
bmide_generate_condition_report
-file=consolidated-model-file
-condition= condition-name
-reportfile= generated-report-file
-log=log-file
-h]
[-h
-h
Arguments
-file
Specifies the consolidated model file used to generate the report. A
consolidated model file can be obtained by running the business_model_extractor
utility to extract all the elements or by getting the model.xml file from the
TC_DATA\model directory of a Teamcenter database site.
-condition
Specifies the condition name for which the report is to be generated.
-reportfile
Specifies the file where the report is generated.
-log
Specifies the path of the log file containing results of the execution.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
bmide_generate_datamodel_doc_report
Generates an HTML data model report of business objects, business rules, and
LOVs of the current Teamcenter version. The data model for the report is
built using the Business Modeler IDE templates found in the target templates
directory specified by the user (for example, TC_ROOT/bmide/templates
/bmide/templates).
You can also generate this report using the Business Modeler IDE.
For more information, see the Business Modeler IDE Guide.
The data model report consists of the following sections:
• Overview
Provides an overview of the data model report.
• What’s New
Provides a list of what has changed in the data model since a previous
version.
• Glossary
Provides a glossary of all the data model elements managed by the Business
Modeler IDE.
• Deprecated
Provides a list of all libraries and operations that are deprecated.
Syntax
bmide_generate_datamodel_doc_report
-targetTemplatesDir= target-file-path-name
-sourceReleaseVersions=[Tc200715
-sourceReleaseVersions= Tc200715 | Tc801 | Tc810 | Tc820 | Tc830 | all
[-sourceReleaseVersions= all]
-outputDir= directory-for-generated-reports
-skip=XML-file-excluded-templates]
[-skip=
-h]
[-h
-h
Arguments
-targetTemplatesDir
Specifies the full path to the directory containing all templates from the
target version for which the data model report must be generated, such as
TC_DATA/model or TC_ROOT/bmide/templates
/bmide/templates.
-sourceReleaseVersions
Specifies a comma-separated list of Teamcenter versions to generate a
comparison, for example, -sourceReleaseVersions=Tc820,Tc830 .
-sourceReleaseVersions=all.
To generate a report for all versions, specify -sourceReleaseVersions=all
-outputDir
Specifies the full path to the directory where the reports must be generated.
-skip
Specifies a list of templates in the target templates directory to skip during
processing. This argument should specify the full path to the XML file that
has the list of templates. Following is an example of the XML file format:
<?xml version=”1.0” encoding=”UTF-8” standalone=”no”>
<TcBusinessdataIncludes>
<exclude file=”hrn_template.xml”/>
<exclude file=”erp_template.xml”/>
</TcBusinessdataIncludes>
-h
Displays help for this utility.
Restrictions
Following are the limitations of this utility:
• This report only generates business objects and classes that are under the
Item, ItemRevision
Item ItemRevision, Form
Form, Dataset
Dataset, and Folder business objects or classes.
This report also generates classes that are the form storage classes of
any item master form or item revision master form business object. All
other classes and business objects are not shown as they are considered
internal to the product. Therefore, if you supply your own template in
the target directory, only the business objects and classes that fall into
these categories are shown in the report.
• The reporting tool contains a record of all Teamcenter templates that are
included with Teamcenter for each prior version. Therefore, when generating
the What’s New section, the report is able to accurately generate a
comparison of all elements in a target version against a designated former
source version. This results in the What’s New comparison displaying new,
changed, and removed for each element. Because the reporting tool does not
include a record of any other templates, including third-party and customer
templates, the report automatically lists all elements from these templates
as new in the What’s New section. Disregard the new status because it
does not reflect whether the element was really new, changed, or removed.
Examples
• To generate an HTML data model report, enter a command like the following
on a single line:
bmide_generate_datamodel_doc_report
-targetTemplatesDir=C:\Siemens\config1\tcdata\model
-sourceReleaseVersions=all –outputDir=C:\datamodelreports\tc9.0
-skip=C:\skiplist.xml
• To generate the What’s New section of the report, choose one or more
source versions to compare with the current version, as shown in the
following examples:
o To generate a report that compares the data model found in Teamcenter
8.1, use the following command:
bmide_generate_datamodel_doc_report
-targetTemplatesDir=C:\Siemens\config1\tcdata\model
-sourceReleaseVersions=Tc810 –outputDir=C:\datamodelreports\tc9.0
bmide_generate_datamodel_doc_report
-targetTemplatesDir=C:\Siemens\config1\tcdata\model
-sourceReleaseVersions=Tc810,Tc820 –outputDir=C:\datamodelreports\tc9.0
bmide_generate_datamodel_report
Reports the details of a given category of model elements.
Business Modeler IDE users can define a number of model elements and store them
in a Business Modeler IDE template. These templates can be deployed to any
Teamcenter database. At times a Business Modeler IDE user may be interested
in generating a report of all LOVS or GRM rules in the system, or a report
that shows a combination of multiple model element categories such as all deep
copy rules and all naming rules. A user can use the Business Modeler IDE
client to examine all of this information; however, this report offers an
easier means to examine all elements within a given category by generating
this information into a single HTML page. The data model source for the report
can be specified only in the form of a consolidated model file. (You cannot
provide other source for input.)
You can also generate this report using the Business Modeler IDE.
For more information, see the Business Modeler IDE Guide.
Note
Not specifying the -element argument for the data model report generates
a report for all elements. Because all elements are generated into a
single file, this report has limitations. As the number of categories
and elements within a category grows, so does the resulting file size.
In cases where you want to generate a report of multiple categories, try
using the bmide_generate_datamodel_doc_report utility.
Syntax
bmide_generate_datamodel_report
-file=consolidated-model-file
-element= element-name
-reportfile= generated-report-file
-log=log-file
-h]
[-h
-h
Arguments
-file
Specifies the initial consolidated model file used to generate the report. A
consolidated model file can be obtained by running the business_model_extractor
utility to extract all the elements or by getting the model.xml file from the
TC_DATA\model directory of a Teamcenter database site.
-element
Specifies the comma-separated element names to include in report.
-reportfile
Specifies the file where the report is generated.
-log
Specifies the path of the log file containing results of the execution.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
This report only generates business objects and classes that are under the
Item, ItemRevision
Item ItemRevision, Form
Form, Dataset
Dataset, and Folder business objects or classes.
This report also generates classes that are the form storage classes of
any item master form or item revision master form business object. All
other classes and business objects are not shown as they are considered
internal to the product. Therefore, if you supply your own template in the
target directory, only the business objects and classes that fall into these
categories are shown in the report.
Examples
• To generate a report of all lists of values (LOVs), use the following
command:
bmide_generate_datamodel_report -report=model -file=model-file-path -element=lov
-reportfile=report-file-path
bmide_manage_batch_lovs
Manages the values for LOVs marked as externally managed, whose values are
stored solely in the Teamcenter database. Use this utility to update and
extract the values for externally managed LOVs and generate a report of these
LOVs.
When you use this utility to update externally managed LOVs in the database,
submit the LOV values in an XML file and submit the localizations in a separate
XML file in a lang subdirectory, as shown in the following example:
If the localizations are in locale-specific files, the files must be named per
their locales, as shown in the following example:
For more information about externally managing LOVs, see the Business Modeler
IDE Guide.
Syntax
bmide_manage_batch_lovs -u=user-id {-p=
-p=password |
gener=password-file} [-g=
-g=group]
-option=[update
-option= update | extract | report
report]
all | comma-separated-list-of-lov-names]
-lov=[all
-lov=
-file=file-path
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-option
Valid values for option are:
• update
Updates the values for all the externally managed LOVs defined in the
input file.
• extract
Extracts all the externally managed LOVs and their corresponding values
into the specified file. The localizations also get extracted and are
stored in the lang directory. Use with the -lov argument to specify the
externally managed LOVs to be extracted.
• report
Provides a report of all the externally managed LOVs in the Teamcenter
database. Use with the -lov argument to specify the LOVs in the report.
The report is generated in the HTML format.
-lov
Use only in conjunction with the -extract or -report arguments. Valid values
for option are:
• all
Extracts or runs a report on all externally managed LOVs.
• comma-separated-list-of-lov-names
Extracts or runs a report only on the listed externally managed LOVs.
If a list of LOV names is not specified, the all argument is assumed by
default.
-file
Specifies the path to the file containing LOV values (when updating LOV values
in the database), the path of file where the extracted LOVs are to be saved
(when extracting LOV values from the database), or the file where the generated
report needs to be saved (when running a report of LOV values in the database).
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
When you install the Business Modeler IDE, sample files are installed to
TC_ROOT\bmide\client\samples\externallymanagedlovs . Following are some
additional examples:
• To update the LOV values and localizations, enter a command like the
following on a single line:
bmide_manage_batch_lovs.bat –u=username –p=password –g=dba
–option=update –file=BatchLOV_LOV1.xml
Note
• To extract all the LOV values, sub-LOV attachments, and localizations from
the database, enter a command like the following on a single line:
bmide_manage_batch_lovs –u=username –p=password –g=dba
–option=extract -file=BatchLOV_LOV1_extracted.xml
Do this when you want to check the current values on any of the LOVs or
to use the extracted file as the basis for the next set of changes if the
original source input file is no longer available.
bmide_manage_templates
Adds solution templates to the database table.
Syntax
bmide_manage_templates -u=user-id {-p=-p=password | pf=password-file} [-g=
-g=group]
-option= option-type -templates= template-names [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-option
Specifies whether to add templates to the database or list the existing
list.
templates in the database. Valid values are add or list
-templates
Specifies the name of the template to add to the database. Multiple templates
can be added by separating the names by a comma.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
bmide_postupgradetotc.sh/.bat
Extracts the site's customizations from the database. This utility is executed
after upgrading the database to Teamcenter 10.1.
Syntax
bmide_postupgradetotc.sh -u=user-id {-p= -p=password |
-pf=password-file} [-g=
-g=group]
-sol_name= solution-name -sol_disp_name= display-name -log=log-file [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-sol_name
Specifies the name of the solution to be created.
-sol_disp_name
Specifies the display name of the solution to be created.
-log
Specifies file path and name of the log file that contains the results of
this execution.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
bmide_setupknowledgebase
Generates the CLIPS (C Language Integrated Production System) rule file and
uploads it to the database. It should only be run after upgrading the database
from a pre-Teamcenter 2007 version to Teamcenter 2007 or later version.
Syntax
-u=user-id {-p=
bmide_setupknowledgebase [-u= -p=password |
-pf=password-file} -g=group]
-regen=true/false -log=output-file-for-the-log-file [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-regen
false.
Regenerates the CLIPS file. Values can be true or false
-log
Specifies file path and name of the log file that contains the results of this
execution. This argument is optional.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
business_model_extractor
Extracts the data model definitions in the database into a XML file.
Syntax
business_model_extractor
-u=user-id {-p=
[-u= -p=password | -pf=password-file} -g=group]
-outfile= output-file
-mode=[all
-mode= all | schema | localization
localization]
-log=log-file
-stats
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-outfile
Specifies file path and name of the XML file to be created with business data.
-mode
Specifies the extraction mode:
• all
Extracts the entire model. This is the default mode.
• schema
Extracts the classes and attributes.
• localization
Extracts all localizations in the localization's format.
-log
Specifies file path and name of the log file that contains the results of
this execution.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
To extract the entire datamodel in the database and output to the
db_extract.xml file:
business_model_extractor -u=infodba -p=infodba -g=dba -mode=all
-outfile=c:\temp\db_extract.xml
business_model_updater
tcschema, types, and business rules.
Deploys tcschema
Note
Syntax
business_model_updater [-u=-u=user-id {-p=
-p=password |
-pf=password-file} -g=group]
install | upgrade
-mode= [install upgrade]
-update= [ all | non_schema | schema | main_types | types | rules |
bmf_rules_skip_missing_types | bmf_rules | lovs | lov_attaches |
convert_to_primary]
non_schema_ignore_lov_attach | convert_to_primary
all]
-process= [add | delete | change | all
-file=XML-file-path-name
-log=log-file- path-name
-mergedatasettype]
[-mergedatasettype
-mergedatasettype [-h -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-mode
Specifies the update method:
install
Specifies the update is for an installation of a new database.
upgrade
Specifies the update is for upgrading from one version to another version.
-update
Specifies which Business Modeler IDE object to update.
non_schema_ignore_lov_attach, the utility skips TcLOVAttach
If you specify non_schema_ignore_lov_attach
objects and processes all other non_schema objects.
-process
Specifies which Business Modeler IDE process to update.
-file
Specifies the path name to the XML file generated by Business Modeler IDE. The
Class, Type
file contains Business Modeler IDE object definition data such as Class Type,
and LOV attachments.
-log
Specifies the path name to the log file.
-mergedatasettype
Specifies that dataset type definitions must be merged with existing dataset
type definitions.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
change_datasets
Modifies the dataset reference name and the associated tool. This utility is
run when resolving dataset type name collisions.
For more information, see the Business Modeler IDE Guide.
Syntax
-u=user-id {-p=
change_datasets [-u= -p=password | -pf=password-file} -g=group]
-ds_info= change-dataset-information-xml-file-location
-keep_definition
-dry
-bulk
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-ds_info
Specifies the full path to the ChangeDatasetInfo.xml file generated by the
utility.
-keep_definition
Specifies to keep the original tool and reference definition.
-dry
Logs information about modifications. No actual modifications are done with
this argument. This is an optional argument.
-bulk
Runs a bulk update. This is an optional argument.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
clips_dataset_upload
Stores both the ASCII (text) version and binary version of the CLIPS knowledge
base files into the CLIPS (singleton) dataset in Teamcenter. This utility is
called during Business Modeler IDE deployment activities when changes are
identified to condition objects or rules based framework objects (application
extension point and application extension rules). Only administrative users
are allowed to run this utility.
Syntax
-u=user-id {-p=
clips_dataset_upload [-u= -p=password | -pf=password-file} -g=group]
-file=path-to-upload-file
-log=output-file-for-the-log-file
-force_uncheckout= true/false
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-file
Specifies the full path to the file specified for upload. Read access must
be allowed on the directory.
-log
Specifies file path and name of the log file that contains the results of this
execution. This argument is optional.
-force_uncheckout
Cancel checkout of the CLIPS rules dataset and continue processing if set to
true. If set to false
true false, return an error if the CLIPS rules dataset is checked
false.
out. Values can be true or false
This is typically used to restore the CLIPS rules dataset if left checked
out in error.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
convert_forms
Allows a user with DBA privileges to convert legacy file-based forms to
storage-based forms. You can manage the conversion process, as follows:
1. Determine whether a given form type or all form types to be converted.
5. Restart the process without data corruption in the event that the process
is stopped or terminates abnormally.
6. Generate log files listing information about forms that were successfully
converted, failed to convert, and which attribute values are dropped or
truncated. These files are retained if the process is terminated before
completion.
Upgrading
forms
Updating file-based forms to storage-based forms involves the following steps:
1. Generate a file containing the list of forms to be converted, by running
the convert_forms utility, as follows:
convert_forms
-identify -output_file=file-name [-type=
-type=type-name]
This produces an output file containing the UIDs of file-based forms, one
per line. The output file must be opened in append mode. This allows
multiple lists of form type information to be contained in the same file.
If the -type argument is not specified, all file-based forms are included
in the output file.
3. If errors occur during the conversion process, the UIDs of the forms that
were not converted are listed in the error file. After identifying and
correcting the errors, you can use the ErrorFile file as the input file
when rerunning the utility to convert the forms.
Process
options file
The -process_file argument specifies a file containing information related to
specific runs of the utility. You can copy the following example, paste it into
a text editor, and use it as a starting point for your process options file:
<?xml version="1.0" encoding="iso-8859-1"?>
<ProcessInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="convertFormProcessInfo.xsd">
<InputFile>C:\\temp\\form_uids.txt</InputFile>
<StartLine>1</StartLine>
<EndLine>100000</EndLine>
<LogFile>C:\\temp\log.txt</LogFile>
<ErrorFile>C:\\temp\error.txt</ErrorFile>
<SuccessFile>C:\\temp\success.txt</SuccessFile>
</ProcessInfo>
InputFile Specifies either the file generated as output when the utility
is run with the -identify option or the ErrorFile file
generated during a conversion run.
StartLine The line number in the InputFile that specifies the beginning
of the block of forms to be converted. If the line number is
not specified, the default value is 1.
EndLine The line number in the InputFile file that specifies the end
of the block of forms to be converted. If the line number is
not specified, the default end line is the end of the file.
LogFile Specifies the name of the file that logs information about
dropped or truncated attribute values.
ErrorFile Specifies the name of the file containing the UIDs of forms
that were not converted due to errors. Errors encountered
during conversion do not stop the process. When the reasons
for the failure have been identified and corrected, the
ErrorFile file can be used as the input file when the utility
is rerun to convert those forms.
SuccessFile Contains UIDs of forms that were successfully converted. This
file can be useful for multi-site conversions.
LogFile, ErrorFile
All three files, LogFile ErrorFile, and SuccessFile
SuccessFile, are optional. If not
specified, the corresponding file is not generated.
Input options
file
Unlike the process options file, which is specific to a particular run of
the utility, the file specified by the -input_options argument contains
information that is common to all runs of the utility. The following example
illustrates the format of an input options file:
<FormTypes>
<Type name=<name>>
<DropAttrs action=none | all | unmapped | DropList>
<ImanFileAttr name=<name> log=no | yes />
………………
</DropAttrs>
<MapAttrs>
<Map ImanFileAttr=<name> POMAttr=<name> truncate=no | yes | log />
……………….
</MapAttrs>
<KeepLastModified action=no | yes />
<DeleteImanFile action=yes | no />
</Type>
………………..
</FormTypes>
All element attributes in the file have default values, indicated in italics
in the example. If all default values are assumed, the input options file
can be omitted.
Type One or more Type elements can exist in the mapping file.
Forms to be converted can be of different form types,
all of which are listed in the file. If a form has no
corresponding Type element, all form ImanFile attributes
are mapped to the corresponding POM storage class
attributes with the same names.
DropAttrs Each DropAttrs element can contain zero or more DropList
elements.
DropAttrs action=none indicates that no attributes are
dropped, all indicates that all attributes are dropped and
no storage object needs to be created. unmapped indicates
that all unmapped attributes are dropped. DropList
indicates that a list is created of attributes that are
dropped.
ImanFileAttr To use the ImanFileAttr element, the DropList action must
be used for the DropAttrs element.
The ImanFileAttr element has a log attribute. If the value
yes, the dropped attribute name and
of this attribute is yes
value are written to the log file.
MapAttrs Each MapAttrs element can contain one or more Map elements.
The Map element allows an ImanFile attribute to be mapped
to a POM storage class attribute with a different name. If
an ImanFile attribute is not included in this list, it is
mapped to the storage class attribute with the same name.
The Map element allows you to truncate the string data on
conversion. If the truncate attribute value is no an error
occurs and the form is not converted. If the value of
yes, the data is truncated and
the truncate attribute is yes
not logged on the log file, while the log attribute will
truncate the data and log it in the log file.
Only primitive attribute types are supported by this
utility. Date, typed, and untyped references are not
supported.
Do not create empty storage objects. Create an object
only if one or more values are copied from the ImanFile
properties.
Form attributes are case sensitive.
KeepLastModified The KeepLastModified element specifies whether the
last modified date must be updated to reflect the time
of conversion. The default value is to update the
last-modified date.
DeleteImanFile The DeleteImanFile element specifies whether to delete
the ImanFile after conversion. The default value is to
delete the file.
You can copy the following example, paste it into a text editor, and use it
as a starting point for your input options file:
<?xml version="1.0" encoding="iso-8859-1"?>
<FormTypes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="convertFormInputOptions.xsd">
<Type name="UGPartAttr">
<DropAttrs action="DropList">
<ImanFileAttr name="ASSEMB_NO" log="yes" />
<ImanFileAttr name="MODEL" log="yes" />
</DropAttrs>
<MapAttrs>
<Map ImanFileAttr="CREATOR" POMAttr="CREATOR" truncate="log" />
</MapAttrs>
<KeepLastModified action="no" />
<DeleteImanFile action="no" />
</Type>
</FormTypes>
Syntax
-u=user-id {-p=
convert_forms [-u= -p=password | -pf=password-file} -g=group]
-identify -output_file= file-name [-type=
-type=form-type] -convert
-process_file= file-name [-input_options=
-input_options= file-name]
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-identify
Generates an output file containing the UIDs of file-based forms. This
argument is used in conjunction with the -output_file argument.
-output_file
Specifies the name of the output file.
-type
Specifies the type of the forms to be converted. If not specified, all
file-based forms are converted.
-convert
Converts file-based forms that are read from a previous run of the utility using
-identify option. The -convert argument is used with the -process_file
the-identify
and -input_options arguments.
-process_file
Specifies the process file containing names of the input file, log file, error
file, and success file, as well as the start line number and end line number.
For more information about this file, see Process options file.
-input_options
Specifies the name of an input file containing information about how to convert
forms. For more information about this file, see Input options file. This
argument is optional.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
The convertFormProcessInfo.xsd and convertFormInputOptions.xsd XML schema
files are delivered as part of your Teamcenter installation and are located
in the imandata directory. You must use these schema files to process the
XML files that you generate.
Restrictions
None.
Examples
• To output the UIDs of all file-based forms of UGPartAttr type into the
C:\temp\form_uids.txt file, enter the following command on a single line:
convert_forms -u=infodba -p=infodba -g=dba -identify
-output_file=C:\temp\form_uids.txt -type=UGPartAttr
deploy_archive
Archives deployment files for both Teamcenter Environment Manager (TEM) and the
Business Modeler IDE. An administrator can run this utility from the command
line in retrieve mode to retrieve the last set of deployment archive files.
This utility is automatically run at deployment to archive files, but you can
turn off this functionality by setting the DEPLOY_ARCHIVE_ACTIVE environment
off, no
variable to false (or off no, or 0).
The deployment archival process is as follows:
1. A set of extractor and updater utility log files (specified by an input
directory) are zipped into an archive file.
3. For every deployment, the zipped archive files are uploaded into a new
Fnd0BMIDEDeployArchive dataset type).
deploy archive dataset (Fnd0BMIDEDeployArchive
2. A subdirectory using the dataset name with the create date/time stamp is
created under a specified target directory.
3. Each named reference (archive zip file) for the archive dataset is exported
to that subdirectory.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. The file must be a single-line ASCII file
containing the password in clear text. Teamcenter Environment Manager prompts
you for a password and creates the password file during installation.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -p argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-action
Creates or retrieves the archive. You must specify one of these options:
• deploy
Collects and creates the deploy archive ZIP files and upload them into
a deploy archive dataset. Requires the -deploySource argument to be
specified.
• retrieve
Extracts the deploy archive ZIP files from the specified deploy archive
datasets. The dataset name is used to create a subdirectory in the OS
under the directory name given by the -dir parameter. The named references
(archive ZIP files) are exported to that subdirectory.
-dir
Specifies the full path to the source directory (when using the -action=deploy
argument) or to the target directory (when using the -action=retrieve
argument). The source directory must exist and have read access and contains
files to archive for the deploy action. The target directory must exist and
have write access and contains subdirectories (by dataset name) that each
contain ZIP archive files from the retrieve action.
-deploySource
Identifies the source of the deployment activity when using the -action=deploy
retrieve.) The dataset name format is
argument. (Ignored when the action is retrieve
deploy_tem | bmide_user-id_date-time-stamp. Valid values are:
• tem
Specifies that Teamcenter Environment Manager is the source of the
deployment.
• bmide
Specifies that the Business Modeler IDE is the source of the deployment.
-retrieveNum
Qualifies the number of archive datasets (from latest to earliest) to return
from the saved query execution when the -action=retrieve argument is used.
deploy.) The default is 3. If not specified, 3
(Ignored when the action is deploy
datasets are retrieved. If 0 is set, then all datasets are retrieved. The
actual number of datasets exported can be different than this value based on
the total number of deploy archive datasets.
-afterDate
Specifies the time after which to collect archive log files when using the
retrieve.) The required
-action=deploy argument. (Ignored when the action is retrieve
format is yyyy-mm-dd hh:mm:ss.
-log
Specifies file path and name of the log file that contains the results of this
execution. This argument is optional.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
execute_rbf_rules
Executes the specified application extension rule. The utility validates the
application extension rules are deployed and functioning correctly. Input
parameters for the rule execution are specified in a file. Output is written
to a specified file or displayed on the console. Execution details are written
to a specified log file or displayed on the console.
Description
Syntax
execute_rbf_rules -u=user-id {-p=
-p=password | -pf=password-file} [-g=
-g=group]
-id=application-extension-point-id -inputfile= input-file-name
-outputfile=output-file-name] [-log=
[-outputfile= -log=log-file-name] [-h-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-id
Specifies the ID of the application extension point.
-inputfile
Specifies the location of the input file. The input file format is:
-log
Specifies the location of the log file.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• The following is an example of the utility:
execute_rbf_rules -u=infodba -p=infodba -g=dba
-id=tc.core.pse.icon -inputfile="d:\in1.txt"
-outputfile="d:\out1.txt" -log="d:\rbf1.log"”
• The following input file example specifies that there are two input
Pressure, with corresponding datatypes of String and
columns, Material and Pressure
Integer. The value of Material is Steel
Integer Steel; the value of Pressure is 10
10.
Material | String | Steel
Pressure | Integer | 10
getglobalconstantvalue
Returns the value of a particular global constant in the database. The utility
provides help in troubleshooting issues on the server once the global constants
are deployed. The utility accepts the name of a global constant and outputs
the value of the constant, if present.
Syntax
-u=user-id {-p=
getglobalconstantvalue [-u= -p=password | -pf=password-file} -g=group]
-constantname= global-constant-name [-v=
-v= on | off
off] [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-constantname
Specifies the name of the global constant.
-v
Specifies verbose mode. Specify on to display a detailed message. Specify off
on.
to display only the value. Default value is on
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
Entering the following command:
getglobalconstantvalue -u=infodba -p=infodba -g=dba
-constantname=SampleConstant
get_key_definition
Gets the multifield key definition for a business object type. Multifield
keys are identifiers assigned to each object to ensure their uniqueness in
the database.
At a command prompt, type:
get_key_definition -class=business-object-type
Note
There are other utilities that you can use to work with keys. Use
the get_key_string utility to get the multifield key value of an item
instance as a string containing property names and values, and use the
mfk_update utility to update multifield key definitions in the key table
in the database.
get_key_string
Gets the multifield key value of an item instance as a string containing
property names and values. This utility can be run on the Item business object
or any of its children. Multifield keys are identifiers assigned to each
object to ensure their uniqueness in the database.
If the -item or -key argument input corresponds to more than one item, the
key values for each of the items found is displayed. If the -key argument is
used, partial keys are allowed. For example, if the key for an item is defined
item_id,prop1,prop2, inputs such as -key=item_id=123456,prop1=abcd are
as item_id,prop1,prop2
allowed, which may result in multiple items being found and displayed.
To use the -item argument to get key values for an item, use the following
command:
get_key_string -item=item-ID
If other properties are added to the multifield key definition for an item
business object, they are displayed separated by commas. For example, if the
item_id and object_type properties comprise the multifield key for a custom
T5_MyItem, the output of the command is:
item business object named T5_MyItem
Item Type is T5_MyItem, Key String is item_id=000016,object_type=T5_MyItem
To use the -key argument to get the business object type for an item, use
the following command:
get_key_string -key=property=property-value
Note
• There are other utilities that you can use to work with keys. Use the
get_key_definition utility to get the key definition for a business
object type, and use the mfk_update utility to update multifield key
definitions in the key table in the database.
Arguments
-item
Specifies the ID of items for which key values are to be displayed.
-key
Specifies the key value of items for which item types are to be displayed.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To get the values of the multifield key properties on an Item business
000016:
object instance whose item ID is 000016
get_key_string -item=000016
• item_id=000016:
To get the item type of an instance whose key is item_id=000016
get_key_string -key=item_id=000016
getpropertyconstantvalue
Returns the value of a property constant on a particular business object and
property in the database. The utility provides help in troubleshooting issues
on the server once the property constants are deployed to the database. The
utility also applies the inheritance and scope of the property constants while
fetching the value. Therefore, it removes the burden of manually analyzing the
extracted model to troubleshoot a property constants value on a given business
object and property. The utility accepts the name of a property constant,
business object and property and outputs the value of the constant, if present.
Syntax
-u=user-id {-p=
getpropertyconstantvalue [-u= -p=password |
-pf=password-file} -g=group]
-constantname= constant-property-name -typename= type-object-name
-propertyname= property-name [-v=
-v= on | off
off] [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-constantname
Specifies the constant property name.
-typename
Specifies the name of the business object.
-propertyname
Specifies the name of a property on the business object specified by the
-typename argument.
-v
Specifies verbose mode. Specify on to display a detailed message. Specify off
on.
to display only the value. Default value is on
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
Entering the following command:
propertyconstantvalue -u=infodba -p=infodba -g=dba
-constantname=Visible -typename=Item -property=item_id
gettypeconstantvalue
Returns the value of type constant, that is, a business object constant, on
a particular business object in the database. The utility provides help in
troubleshooting issues on the server once the type constants are deployed
to the database. The utility also applies the inheritance and scope of the
type constant while fetching the value. Therefore, it removes the burden of
manually analyzing the extracted model to troubleshoot a type constants value
on a given business object. The utility accepts the name of a type constant
and business object and outputs the value of the constant, if present.
Syntax
-u=user-id {-p=
gettypeconstantvalue [-u= -p=password | -pf=password-file} -g=group]
-constantname= type-constant-name -typename= type-name [-v=
-v= on | off
off] [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-constantname
Specifies the name of the type constant.
-typename
Specifies the name of the business object.
-v
Specifies verbose mode. Specify on to display a detailed message. Specify off
on.
to display only the value. Default value is on
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
Entering the following command:
gettypeconstantvalue -u=infodba -p=infodba -g=dba
-constantname=SampleConstant -typename=WorkspaceObject
manage_icon_files
Manages uploading icon files to the database. Icons are images placed on
business object instances to identify them in the user interface.
When templates are deployed to a server from the Business Modeler IDE or
installed using Teamcenter Environment Manager, the template’s zipped icon
files are placed into the TC_DATA/model/icons (TC_DATA_MODEL
TC_DATA_MODEL)
TC_DATA_MODEL directory.
At deployment or installation time, the manage_icon_files utility is used
internally by Teamcenter to upload the icons into Fnd0IconResource dataset
instances in the database. To search for these datasets using the rich client,
search for the Icon Resource Dataset type.
For more information, see the Business Modeler IDE Guide.
Warning
This utility is used internally only. Do not run this utility yourself.
Syntax
manage_icon_files -u=user-id {-p=
-p=password | -pf=password-file} [-g=
-g=group]
-option=upload
-template= template-name
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-option=upload
Uploads all icon files from the TC_DATA_MODEL/icons directory to datasets for
the templates specified in the -template argument.
-template
Specifies the templates to upload. Multiple template are specified in a
foundation,tcae.
comma-separated list, for example, foundation,tcae
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
manage_icon_files -u=infodba -p=administrator-password -g=dba
-option=upload -template=bmideproject
manage_model_files
Manages upload and download of files in the TC_DATA_MODEL directory into
Fnd0BMIDEResource datasets. These Business Modeler IDE datasets are stored
in the database in a Fnd0BMIDEResource folder. You can query for this folder
in the rich client for quick reference to the Business Modeler IDE resource
files that are maintained in the database. You can use these files to restore
your Business Modeler IDE environment.
For more information, see the Business Modeler IDE Guide.
Syntax
manage_model_files -u=user-id {-p=
-p=password | -pf=password-file} [-g=
-g=group]
-option=[list
-option= list | upload | download -dir=directory -template= template
download] [-dir=
-release= Teamcenter-release -resource=project ]
-syncToDb
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-option
Valid values for option are:
• list
Lists the version of all templates, language, and model files in the
utility output by querying the versions from the datasets.
• upload
Uploads all template-related files from the TC_DATA_MODEL directory to
datasets. If -template is specified, files specific to the given template
are uploaded from the TC_DATA_MODEL directory to datasets.
• download
Downloads all template-related files from datasets to the
TC_DATA_MODEL directory. If -template is specified, files specific
to the given template are downloaded from datasets to the TC_DATA_MODEL
directory. If -dir is specified, files are downloaded to the given
directory instead of the TC_DATA_MODEL directory.
-dir
Absolute directory path where templates should be downloaded. This can be used
only with the -option=download option.
-template
foundation,tcae.
List of comma-separated template file names, for example, foundation,tcae
-release
tc9000.1.0. If the -release argument is
Teamcenter version, for example, tc9000.1.0
specified, the template project backups for that release are retrieved. This
argument can be used with only the -resource=project argument.
-resource=project
Downloads the template project backup to the directory specified by the
-dir, -release
-dir argument. The -dir -release, and -template arguments must be used in
conjunction with the -resource=project argument.
-syncToDb
Runs the extractor and uploads the extracted model file into the database. Run
the utility with this option only if the data in the database is modified and
the model file in the database is not synchronized.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To retrieve the latest backup of the customer template project to the
local D:\BackupDownloadDir directory:
mfk_update
Updates multifield key definitions in the database. Multifield keys are IDs
assigned to each object to ensure their uniqueness in the database.
Normally, this utility is run automatically by the system when upgrading to
update business object instances on the server to the new multifield key
definitions. As an administrator, you can also run this utility manually to
evaluate proposed multifield key definitions in a template before installing
the template to the production server in order to avoid any potential key
collisions during installation. You can also use this utility to analyze
the multifield key definitions on the server, and if there are corrupt or
inconsistent key definitions, rebuild the key table on the database.
Note
There are other utilities that you can use to work with keys. Use the
get_key_definition utility to get the multifield key definition for a
business object type, and use the get_key_string utility to get the
multifield key value of an item instance as a string containing property
names and values.
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. The file must be a single-line ASCII file
containing the password in clear text. Teamcenter Environment Manager prompts
you for a password and creates the password file during installation.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -p argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-check
Runs the utility in analysis mode. When analyzing proposed multifield key
definitions, the -file option must specify the file name.
-file
Specifies the path of the XML file that contains multifield key definitions
to be analyzed. If -file option is not specified, the utility analyzes the
multifield key definitions in the system.
-rebuild
Rebuilds all multifield key entries. This argument is mutually exclusive with
the -check argument.
-log
Specifies the path of the log file that contains results of the multifield key
update. The default is the TC_TMP_DIR/mfk_updater_ date-and-time.log file. If
the TC _TMP_DIR environment variable is not set, the log file is created in
C:\TEMP on Windows or /tmp on UNIX).
the system temporary directory (C:\TEMP
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To perform an analysis of proposed keys in a custom Business Modeler IDE
template:
mfk_update -u=infodba -p=infodba -g=dba -check -file=C:\delta.xml
-log=C:\mfk_check_template.log
• To rebuild the key table for all multifield key definitions in the database:
mfk_update -u=infodba -p=infodba -g=dba -rebuild -log=C:\mfk_rebuild.log
package_live_updates
Packages live update templates stored in the database. Only templates that are
enabled for live updates can be packaged using this utility.
For more information, see the Business Modeler IDE Guide.
Syntax
package_live_updates -u=user-id -p=password | -pf=password-file} [-g=
{-p= -g=group]
-template= template-name
-dir=directory
-log=log-file-path] [-h
[-log= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. The file must be a single-line ASCII file
containing the password in clear text. Teamcenter Environment Manager prompts
you for a password and creates the password file during installation.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -p argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-template
Specifies the live update template to package.
-dir
Specifies the full path to the directory where the template package is
created. If the -dir argument is not provided, the package is created in the
TC_DATA_MODEL directory. The name of the generated package template file is
template-name_template_extracted_from_live_update_ site-name.
-log
Specifies file path and name of the log file that contains the results of this
execution. This argument is optional.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
process_action_rules
Lists or deletes all the existing action rules in the database.
Syntax
-u=user-id {-p=
process_action_rules [-u= -p=password | -pf=password-file} -g=group]
-delete | -list
[-delete -list] [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-delete
Deletes all the existing action rules.
-list
Lists the actions rules configured for a site. This is the default mode if
delete is not specified.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To list all action rules in the database:
process_action_rules -u=infodba -p=infodba -g=dba -list
taxonomy
Generates a character-mode summary of the POM class hierarchy. The taxonomy
summary is provided in one of two formats: brief summary or full summary. The
brief summary provides a single-line description of each POM class; the full
summary every attribute of every each POM class.
Syntax
-u=user-id {-p=
taxonomy [-u= -p=password | -pf=password-file}
-g=group] [-b
-b [-f=file-name]
-b] -f=
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-b
Specifies a brief summary. Each line of the summary provides the following
information about a POM class: class depth in the schema, object class name,
maximum size in bytes, minimum size in bytes, and application name.
-f
Specifies the name of the output file.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
None.
Localization
find_all_key_value_pairs
Finds all the key/value pairs related to a given installation of Teamcenter.
The results are generated in separate text files named language_locale.txt
.txt,
where language_locale is the Java standardized name for each locale supported
by the system. The result files contain the information using the format
key;value, where value can span over more than one line.
Syntax
-u=user-id {-p=
find_all_key_value_pairs [-u= -p=password |
-pf=password-file} -g=group]
-resources_location= path -output_directory= directory [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-resources_location
Specifies the full path to the directory where the Teamcenter localization is
located. This value is provided by the TC_MSG_ROOT environment variable.
-output_directory
Specifies the directory where the output files are generated.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
None.
ics_localize_class_attributes
Marks class attributes as localizable or nonlocalizable. When marking
attributes as nonlocalizable, Teamcenter removes the translations of referenced
ICO object properties.
Syntax
-u=user-id {-p=
ics_localize_class_attributes [-u= -p=password |
-pf=password-file} -g=group]
-file=file_name -localizable= true|false [-continueOnError
-continueOnError] -h]
-continueOnError [-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-file
Specifies a file name in text format. The input file contains the class ID and
the attribute ID of the attributes to be marked as localized or nonlocalized.
The format of this text file must be as follows:
Class ID|AttributeID_1,AttributeID_2, AttributeID_3...
-localizable
true, specifies that the class attributes listed in the input file are
If set to true
false, it marks the specified attributes as
marked as localizable. If set to false
nonlocalized and removes the translations of referenced ICO object properties.
-continueOnError
Specifies that the utility continues processing after encountering an error.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
ics_localize_class_attributes -u=infodba -p=infodba -g=infodba
-file=my_class_attributes.txt -localizable=true -continueOnError
l10n_import_export
Exports property values of objects from the database to an XML file for
translation purposes. It is also used to import the translated property values
from the XML file to the database.
Syntax
-u=user-id {-p=
l10n_import_export [-u= -p=password | -pf=password-file} -g=group]
-mode= export | import
[-mode= import]
-classificationObjectId= class-ID -transferMode= transfer-mode
-type=type-name -properties= list-of-property-names -file=file-name
-noTransExist -locale= locale-name -master -status= localization-status
-startDate="DD-MMM-YYYY HH:MM"-endDate=" DD-MMM-YYYY HH:MM"]
[-startDate="
-savedQueryName= saved-query-name -entryCount= entry-count -entryNames=
[-savedQueryName=
entry-names -entryValues= entry-values]
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-mode
Specifies whether the user is performing an import or export operation. It
-export.
takes one of the two values, -import or -export
-transfermode
Specifies the name of the transfer mode used to export the objects. This
transfer mode specifies the traversal rules, filter rules, and property sets
to be used for export. It determines what is exported from the system. If not
TIEUnconfiguredExportDefault).
specified, a default transfer mode is used (TIEUnconfiguredExportDefault
TIEUnconfiguredExportDefault
-type
Specifies the type for which the instances have to be exported from the
stxt (key
database: bldb0 (view), icm0 (classification type), smlb0 (class),stxt
LOV type), unct_dict (dictionary attribute).
-properties
Specifies the list of properties (separated by a comma) for which the values
must be exported from the database.
-file
Specifies the file name. It acts as an output XML file while exporting objects
from the database and acts as an input XML file while importing objects to
the database.
-noTransExist
Specifies that no translations exist. This option should only be used with
the -mode=export option. This option should be used along with the -locale
option to export objects for a given type that do not have translations for
the specified locale.
-locale
Specifies the locale. When this option is used with the -mode=export and
-noTransExist options, it exports all objects for a given type that have no
translations for the specified locale. When this option is used with the
-mode=export and -master options, it exports all objects for a given type that
have the specified locale as the master locale.
-master
Exports master values to XML file. This option should only be used with the
-mode=export option.
-status
Specifies the status of the localization. This option is used with the
-mode=export option to specify the localization status of the property values
that must be exported to the XML file for translations. This option is used
with the -mode=import option to specify the localization status that needs to
be set on the property values that are being imported to the database. This
option takes one of the following localization statuses: A (approved), P
(pending), R (in review), I (invalid), or M (master).
-startDate
Specifies the start date in the date range using format DD-MMM-YYYY HH:MM, for
12:01.
example, 28-OCT-2010 12:01
-endDate
Specifies the end date in the date range using format DD-MMM-YYYY HH:MM, for
12:01.
example, 28-OCT-2010 12:01
-savedQueryName
Specifies the saved query name that already exists in the database. This
option can be used with the -mode=export option to export the specified list
of localizable properties on objects returned by the saved query.
-entryCount
Specifies the entry count of an input to the saved query.
-entryNames
Specifies the list of entry names separated by commas.
-entryValues
Specifies the list of entry values separated by commas.
-classificationObjectId
Specifies the ID of the classification object that needs to be exported.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To search for Item objects that have translations so that translations can
be done for a new language (for example, Japanese):
l10n_import_export -mode=export -type=item -locale=ja_JP -notrans -file=abc
• To find all Item objects that were created in the month of January 2010:
l10n_import_export -mode=export -type=Item -file=abc -startDate=01-01-2010
-endDate=01-31-2010
• To import the objects in the Japanese localized file to the database and
set the status to pending (PP):
l10n_import_export -mode=import -file=xyz_ja_JP.xml -status=P
• To localize the object_name property and description for new items, first
create a saved query in the rich client to search for the new items (for
findNewItems) and then export the items using the saved query
example, findNewItems
as an option:
l10n_import_export -mode=export -savedQueryName=findNewItems -type=Item
-properties=object_name,description -file=abc
• To export Item objects where the master locale of the object_name property
is Japanese:
l10n_import_export -mode=export -type=Item -properties=object_name
Only one XML file (for the Japanese locale) is created as output -
abc_jp_JP.xml. All item instances that have the master locale as Japanese
abc_jp_JP.xml
for the object_name property are included in this file.
Only one XML file (for the Japanese locale) is created as output
abc_jp_JP.xml).
(abc_jp_JP.xml
abc_jp_JP.xml All the item instances that have the master locale as
Japanese for the object_name property are included in this file.
l10n_purge_translations
Purges the property translations on instances of a given business object. This
utility is typically used to clean up the instances of a business object
whose property was once marked as localizable with the Localizable property
constant in the Business Modeler IDE.
For more information, see the Business Modeler IDE Guide.
For example, if you add the Localization button to a property by setting
true, and then later decide to
the Localizable property constant to true
false, you must run the
remove the button by setting the constant to false
l10n_purge_translations utility to remove translations that were entered using
the Localization button on that property. The utility must be executed after
the Business Modeler IDE template is deployed.
The l10n_purge_translations utility is necessary only if the Localizable
constant on a property is moved or deleted from one level, but still exists
at another level of the hierarchy. For example, if the Localizable property
constant is set to false on a property on a business object, and there are no
true, then the utility does not
sub-business objects that need to be set to true
need to be executed. The Business Modeler IDE deploy automatically drops all
instances of the Localization button translations on the changed property.
Syntax
-u=user-id {-p=
l10n_purge_translations [-u= -p=password | -pf=password-file} -g=group]
-properties= business-object:property
-file=file-containing-list-of-properties-to-be-purged
-purge_lot_size= number
-log=file-name
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-properties
Specifies properties to be purged. The format of the property is
business-object:property, for example, Item:object_name
Item:object_name. Multiple business
object/property combinations can be supplied as a comma-separated string.
-file
Specifies the file to read the business-object:property to be purged. Each
line must contain a business object/property combination.
-purge_lot_size
Specifies the batch size of instances to be loaded for purging. The default
value is 10000.
-log
Specifies the file name to report any failures. The default is the
TC_TMP_DIR/l10n_purge_translations_ date.log
.log. If the TC_TMP_DIR environment
variable is not set, the log file is created in the /tmp or %TEMP% directory.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Attribute sharing
tc_config_attr_mapping
Enables an administrative user to create or delete the mapping between
Teamcenter properties and external attributes. The utility reads the
attribute_sharing_config.xml configuration file in the TC_DATA directory to
create the mapping. If the properties are already mapped to an LOV, the
properties are not remapped to the external attributes when the utility is run.
Note
Syntax
-u=user-id {-p=
tc_config_attr_mapping [-u= -p=password | -pf=password-file} -g=group]
-action=create_mapping | delete_mapping= type-name.property-name] -h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-create_mapping
Reads the configuration file and creates ExternalAttributes objects by
establishing a connection to the external data source. In addition, the
utility creates MappedProperty objects using the Teamcenter type property and
the external attributes as well as creating a List of Values (LOV) based on
the type of Teamcenter property. The LOV type may be any of the following,
based on the value type:
• ListOfValuesExternalStringExtent
• ListOfValuesExternalIntegerExtent
• ListOfValuesExternalDoubleExtent
• ListOfValuesExternalFloatExtent
• ListOfValuesExternalDateExtent
• ListOfValuesCharExtent
The LOV is not populated with any values at this time, the population occurs at
runtime when the user requests the values for the LOV. The values are fetched
by connecting to the external data source and executing the external query.
-delete_mapping
Deletes the mapping between the specified property and the external attribute.
To delete specific mappings, specify the type and property names in the
following format:
type-name.property-name,type-name.property-name...
The attached object mapping and saved query are deleted when the mapping is
deleted.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
The configuration file must be prepared and validated using the xml_validator
utility prior to running the tc_config_attr_mapping utility.
Examples
• To display help for this utility, enter the following command on a single
line:
tc_config_attr_mapping -h
This command also deletes the associated query. If the LOV that is attached
to the property is not referenced by another property in the database, it
is deleted when this command is run.
Organization
ldapsync
Compares data in an LDAP directory server with the user data in the Teamcenter
database and adds user and person entries that are missing from the Teamcenter
database. If the LDAP information is more recent than the Teamcenter
information, the tool synchronizes the Teamcenter definitions with the LDAP
data. In addition, if user data in Teamcenter does not have a corresponding
entry in the LDAP directory, the Teamcenter user is deactivated.
Preferences must be set to enable this feature. For more information, see the
Preferences and Environment Variables Reference.
Syntax
-u=user-id {-p=
ldapsync [-u= -p=password|-pf=
-pf=password-file}
-g=group] -M=runMode -l=LDAP-password [-t
-t] -v]
-t [-v -h]
-v [-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-M
Specifies the mode in which to run the sync tool.
-l
Specifies the LDAP user password. This value overrides the value of the
LDAP_admin_pw preference.
-t
Specifies trace mode. This value runs the utility in trace mode for debugging
or obtaining extra information.
-v
Specifies verbose mode.
-h
Displays help for this utility.
Restrictions
This utility cannot be used to update replicated organization objects, but
can be used to update master organization objects.
Examples
To update existing user data and add new user entries, enter the following
command on a single line:
$TC_ROOT/bin/ldapsync -u=administrative-user
-p=administrative-password -g=dba -l=ldap-password
make_user
Creates new users, groups, persons, roles, and volumes outside of a Teamcenter
session. This utility also allows you to modify properties of existing user,
group, and role objects. The make_user utility supports batch mode processing
using an input file.
The make_user utility creates each of the objects specified by the command
line arguments. If the minimum arguments are specified, the utility creates a
person and an associated user. If the -group argument is supplied, a group is
created and the user becomes a member of the group. If the -role argument is
supplied, a role is created and assigned to that user.
Note
More than one user can be created at a time. All of the users created become
members of the specified group. If both the -volume and -group arguments are
supplied, the group will have a default volume or be granted access to the
volume. If any of the specified objects already exist, this utility does
not attempt to create them.
You can modify an existing group, role, person, or user using command line
options. Use the -update argument to modify the properties of user, person,
group, or role objects. Use the -rename argument to rename an existing user,
person, group, or role. For a user, the -rename argument specifies the user
ID; for a person, group and role objects, the -rename argument specifies the
group name and role name, respectively.
Use the -description argument to set or modify the description of the group
and/or role. When using the -description argument with the -role and -group
arguments, the same description is set for both the group and role.
Use the -volume argument to create volumes. Before creating volumes, you must
have an FMS server cache (FSC) installed and running, and you must set the
FMS_BootStap_Urls preference with the FSC host and port information.
Use the -licenselevel argument to set the license level when creating a user.
Use the -datasource argument to fix an object incorrectly configured as
internally or externally managed via LDAP synchronization. Use this argument
only to correct incorrect synchronization settings. Set this argument to 0
reset the object as internally managed. Set this argument to 1 to reset the
object as externally managed. Set this argument to 2 to reset the object
as remotely managed.
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
1. The types of licenses available depends on your license agreement. For descriptions of the available license levels, see
your license agreement documentation.
-OSuser
Specifies the operating system user name for the new user. If this argument is
not supplied, the operating system user name defaults to the value specified
in the -user argument.
-group
Specifies the group to which the new user is added. See restriction #1.
-person
Specifies the person associated with the new user. See restriction #2.
-status
Specifies a user’s status. See restriction #8.
-defaultgroup
Specifies a user’s default group. See restriction #7.
-parent
Specifies a group’s parent group. See restriction #7.
-privilege
Specifies a group’s privilege. See restriction #6.
-description
Specifies the description of a group and/or role.
-security
Specifies a group’s security.
-defaultrole
Specifies default role for a group. See restriction #7.
-defaultvolume
Specifies default volume for group and/or user. If you specify this argument,
-user, -password
you must also specify the -user -password, and -group arguments. See
restriction #7.
-defaultlocalvolume
Specifies the default local volume on the user object. See restriction #9.
-role
Specifies the role to which the new user is assigned.
-rename
Specifies a new name for an existing user, group, role, or person.
-os
Specifies that user names and groups specified in the operating system
/etc/passwd and /etc/group files are used to create new users. See restriction
#3.
-volume
Specifies the new volume to be created. See restrictions #4 and #10.
-node
Specifies the network node where the new volume is located. See restriction #4.
-path
Specifies the full path to the location of the new volume. See restriction #4.
-file
Specifies that the input file is read to create users or to modify existing
users, groups and roles after other arguments are processed. Each record in
the file contains the following information:
person|user|password|group|role|option_name1|option_value1
|option_name2|option_value2|….|update
The following four arguments are required if you want the FMS master
configuration updated when a volume is created. Do not include these
arguments if you intend to update the FMS configuration manually. If
fscid, filestoregroupid
supplied, only one of the fscid filestoregroupid, or loadbalancerid
arguments is permitted.
-fscid
Specifies the FSC ID in the FMS configuration to which the volume element will
be added. The maximum length of this argument is 32 characters.
-filestoregroupid
Specifies the Filestore Group ID in the FMS configuration to which the volume
element will be added. The maximum length of this argument is 32 characters.
-loadbalancerid
Specifies the load balancer ID in the FMS configuration to which the volume
element will be added. The maximum length of this argument is 32 characters.
-nationality
Specifies the nationality of the user.
-citizenships
Specifies the citizenship of the user. Citizenships are a two-letter country
code from ISO 3166. A user can have multiple citizenships. Multiple
citizenships are specified with a comma delimeter, such as:
-citizenships=US,GB
-geography
Specifies the geographical location of the user.
-ip_clearance
Specifies the intellectual property (IP) clearance level of the user. This is
the level of access the user has to sensitive (classified) information.
-gov_clearance
Specifies the level of clearance the user has to classified data.
-PA1
Specifies the person attribute: address.
-PA2
Specifies the person attribute: city.
-PA3
Specifies the person attribute: state.
-PA4
Specifies the person attribute: zip code.
-PA5
Specifies the person attribute: country.
-PA6
Specifies the person attribute: organization.
-PA7
Specifies the person attribute: GID (group ID).
-PA8
Specifies the person attribute: mail code.
-PA9
Specifies the person attribute: e-mail address.
-PA10
Specifies the person attribute: phone number.
-ga
Specifies the group member admin privilege. If the user is an administrator,
true. If the user is not an administrator,
set this value to either 1 or true
false.
set this value to either 0 or false
-gm_status
Specifies the group member status. If the group member is inactive, set this
true. If the group member is active, set this value
value to either 1 or true
false.
to either 0 or false
-v
Runs the utility in verbose mode to display the maximum amount of information.
Typically, nonverbose utility sessions only display error messages.
-datasource
Determines whether the synchronization of the specified object (via LDAP
synchronization) is reset. Use this argument only to correct incorrect
synchronization settings.
Set this argument to 0 reset the object as internally managed. Set this
argument to 1 to reset the object as externally managed. Set this argument to
2 to reset the object as remotely managed.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
1. If the command line argument parameter contains spaces, it must be enclosed
product validation
in quotes, for example, “product validation”. This restriction does not
apply to arguments from a file using the -file argument because quotes are
automatically added using this argument.
2. The make_user utility does not assign person attributes, such as address
and phone number.
-volume, -node
4. The -volume -node, and -path arguments must not be separated by other
arguments.
-defaultgroup, -defaultrole
7. The objects specified for the -defaultgroup -defaultrole, -defaultvolume
-defaultvolume,
and -parent arguments must be existing objects.
8. The valid values for the -status argument are 0 (active) and 1 (inactive).
If these values are not specified, the default status is active.
10. To create volumes, an FSC must be installed and running, and the
FMS_BootStap_Urls preference must be set with the FSC host and port
information.
Return Values
Return value upon success 0
Return value upon failure 1
Examples
• To create three new users (tom
tom, dan, and bob
tom dan bob) and assign them to the
london.dev group, enter the following commands, each on a single line:
$TC_ROOT/bin/make_user -u=infodba -p=password -g=dba
-user=tm -group=london.dev -person=tom
$TC_ROOT/bin/make_user -u=infodba -p=password -g=dba
-user=dm -group=london.dev -person=dan
$TC_ROOT/bin/make_user -u=infodba -p=password -g=dba
-user=bp -group=london.dev -person=bob
• To assign the role of planner to london.dev member tm and assign the role
bp, enter the following commands, each
of qc to london.dev members dm and bp
on a single line:
$TC_ROOT/bin/make_user -u=infodba -p=password -g=dba
-user=tm -group=london.dev -role=planner
$TC_ROOT/bin/make_user -u=infodba -p=password -g=dba
-user=dm -group=london.dev -role=qc
$TC_ROOT/bin/make_user -u=infodba -p=password -g=dba
-user=bp -group=london.dev -role=qc
• user_id3)
To create a new user (user_id3
user_id3 who is a citizen of the United States:
Person_name3|user_id3||PGroup|PRole|citizenships|US
• user_id4)
To create a new user (user_id4
user_id4 who is a citizen of both the United States
and Japan:
Person_name4|user_id4||PGroup|PRole|citizenships|US,JP
• user_id3)
To modify the citizenship of an existing (user_id3
user_id3 who is a citizen of
both the United States and Great Britain:
|user_id3||PGroup|PRole|citizenships|US,GB|update
• user_id4)
To modify the citizenship of an existing (user_id4
user_id4 who is a citizen of
the United States:
|user_id4||PGroup|PRole|citizenships|US|update
• To create user user1 with a license level of consumer and user user2
author, create a file named user.lst containing
with a license level of author
the following data:
user1person|user1|user1|group1|Consumer|licenselevel|consumer
user2person|user2|user2|group1|Author|licenselevel|author
Note
• To create user user1 with a license level of consumer and user user2 with a
author, and assign user1 to the LBundle1 license bundle
license level of author
and user2 to the LBundle2 license bundle, create a file named user.lst
containing the following data:
user1person|user1|user1|group1|role1|licenselevel|consumer|licensebundle|LBundle1
user2person|user2|user2|group1|role1|licenselevel|author|licensebundle|LBundle2
Note
• To update user user1 with a license level of consumer and user user2 with a
author, and assign user1 to the LBundle1 license bundle
license level of author
and user2 to the LBundle2 license bundle, create a file named user.lst
containing the following data:
user1person|user1|user1|group1|role1|licenselevel|consumer|licensebundle|
LBundle1|update
user2person|user2|user2|group1|role1|licenselevel|author|licensebundle|
LBundle2|update
Note
Object validation
create_validationdata
Creates validation data or validation agent objects in Teamcenter.
Before creating validation data, ensure the validation agent exists in the
database. If the validation agent does not exist, the utility issues an error
message and terminates. If the validation data already exists for the given
validation agent, the utility issues an error message and terminates.
Syntax
The following syntax applies to creating validation data:
-u=user-id {-p=
create_validationdata[-u=
create_validationdata -p=password |
-pf=password-file} -g=group]
-v_name= validation-name
-v_agent_name= agent-name
-clr_name=closure-rule]
[-clr_name=
-v_desc=validation-data-description]
[-v_desc=
-v_category=category]
[-v_category=
-v_ext_rule_file= external-rule-file-path]
[-v_ext_rule_file=
-log]
[-log
-log
-h]
[-h
-h
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-create_agent
Indicates the utility is to create a validation agent.
-v_name
Specifies the name of the validation data, for example, mgc_exam_geometry_combo
Check-Mate.
in NX Check-Mate
-v_agent_name
Specifies the name of the validation agent in the database.
-v_desc
Describes the validation data or validation agent, for example, "Test
geometry".
geometry"
-v_category
template.modeling.
Specifies the category of the validation data, for example, template.modeling
-v_util_cmd
Specifies the utility command string for the validation agent, for example,
ug_check_part.
ug_check_part
-clr_name
Specifies the name of the closure rule. Closure rule names must be unique. If
multiple closure rules are encountered, the utility considers only the first
rule. If he closure rule name does not exist in the database, the utility
issues an error message and returns a list of closure rules in the database
NX.
available to the user. An example of a closure rule is NX
-v_args
Specifies the arguments associated with the validation agent, for example,
-pim=yes.
-pim=yes
-v_ext_rule_file
Specifies the external rule file path for validation data, for example,
D:\Temp\ExtRuleFle.xls.
D:\Temp\ExtRuleFle.xls
-log
Specifies the output of this utility to be written to the log file.
-h
Displays help for this utility.
Environment
Requires no special environment. Teamcenter environment is sufficient to
run this utility.
Restrictions
None.
Examples
The following example creates a validation agent for the NX Check-Mate utility
for the mqc_exam_geometry checker.
create_validationdata.exe -create_agent -v_agent_name= “NX CheckMate”
-v_desc= “testing create agent” -v_util_cmd= “ug_check_part”
-clr_name= “NX” -v_args= “-pim=yes”
create_validationdata.exe -v_name= “mgc_exam_geometry”
-v_agent_name= “NX CheckMate” -v_desc= “testing create checker”
-v_category= “modeling”
Teamcenter reporting
install_default_report_designs
Creates the default report designs contained in the default_report_design.xml
file as part of the Teamcenter installation process. Other report designs can
be imported into the database by adding them to the default_report_design.xml
file and rerunning the utility.
Syntax
-u=user-id {-p=
install_default_report_designs [-u= -p=password |
-pf=password-file} -g=group]
-file=xml-file-list -design_name= report-design-name -create_new [-update_all
-update_all |
-update_query | -update_pff | -update_formatter [-v-v]
-v [-h-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-file
Specifies the name of the XML file containing report design definitions.
-design_name
Specifies the name of the report design.
-create_new
Creates new objects.
This cannot be used with update modes.
-update_all
Updates all existing objects (query, pff, and formatter).
-update_query
Updates existing query objects.
-update_pff
Updates existing pff objects.
-update_formatter
Updates existing formatter objects.
-v
Displays detailed status information.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Return Values
Return value upon 0
success
Return value upon >1, –1
failure
Examples
To create default report enter the following command on a single line:
install_default_report_designs -u=infodba -p=infodba -g=dba
-file=$TC_DATA\report_writer\default_report_designs.xml
XML File
Format
The format required for the XML file is as follows.
<ReportDesign>
<DesignName>Admin - Objects By Status</DesignName>
<DesignDesc>This report returns objects of a specified type released to a
specified status.</DesignDesc>
<Query>
<QueryName>Admin - Objects By Status</QueryName>
<QueryDesc>This query was created to support the Admin -
Objects By Status Report.</QueryDesc>
<QueryClass>WorkspaceObject</QueryClass>
<QueryClause>SELECT qid FROM WorkspaceObject WHERE
"object_type" = "${Type = ItemRevision}" AND
"release_status_list.name" = "${Release Status = }"
</QueryClause>
<DomainFlag>QRY_DOMAIN_LOCAL</DomainFlag>
</Query>
<Pff>
<PffName>Admin - Objects By Status</PffName>
<PffDesc>This PFF was created to support the Admin -
Objects By Status Report.</PffDesc>
<PffClass>WorkspaceObject</PffClass>
<PffClause>
WorkspaceObject.object_name;Object Name,
WorkspaceObject.object_type;Object Type,
WorkspaceObject.release_status_list.name;Release Status,
WorkspaceObject.date_released;Date Released,
WorkspaceObject.owning_user.user_id;User Name,
WorkspaceObject.owning_group.name;Group Name
</PffClause>
</Pff>
<Formatter>
<Filename>default_xml_template.xsl</Filename>
<Datasettype>XMLReportFormatter</Datasettype>
</Formatter>
<Formatter>
<Filename>default_excel_template.xlt</Filename>
<Datasettype>ExcelReportFormatter</Datasettype>
</Formatter>
</ReportDesign>
rep_batch_report
Used in batch or shell script files to generate reports in batch mode when the
user selects the Batch mode option in the Generate ME Report dialog box.
The following administrative tasks must be performed to enable batch reporting:
1. Create a report request flat file containing default values and details of
item ID, revision ID, operating system report location, Teamcenter report
location, report format, revision rule, variant rule, transfer mode, and
status. The format of the file is as follows:
_________________________Start of format_______________________
start_global_definitions
User ID infodba
Password infodba
TC_ROOT w:\iman_wnti
TC_DATA w:\src\iman\data
Default Report Location Teamcenter # possible values are OS or Teamcenter
Default OS Location C:\temp\Reports
Default Revision Rule Latest Working
Default Saved Variant Rule DemoVariantRule
Default Transfer Mode web_reports
Default Formatter : Product_Structure.xsl
Delimiter ~
end_global_definitions
start_data_definition
#ItemID~Revision~Report Location~OS Location~Revision Rule~Saved Variant
Rule~Transfer
Mode~Formatter~Status
000234~A~OS~~~MyVariantRule~~Standard Product~
end_data_definition
start_data_definition
#ItemID~Revision~Report Location~OS Location~Revision Rule~Saved Variant
Rule~Transfer Mode~Formatter~Root Product Tag~ (line continued)
Root Product Rev rule~Root Product Var rule~Root process Tag ~Hierarcy
UID tags~level~Root PlantTag~Root Plt Rev Rule~Root Plt Var Rule~Status
GM00071~001~OS~~Latest Working~~web_reports~Product_Structure.xsl~~~~~~~~~~
ABC000007~A~OS~~Latest Working~~web_reports~station_weld.xsl~SvNJ1puVl9P7VD~
(line continued)
Latest Working~~htNJmIl8l9P7VD~x5FJmIl8l9P7VD,BKKJmIl8l9P7VD,RaDJmIl8l9P7VD
~3~zwDJ2_1$l9P7VD~Latest Working~~
end_data_definition
____________________End of format___________________________________
Note
A sample batch file and shell script file are located in the
TC_ROOTweb/htdocs/web_reports/data directory. In addition, you can
manually append data to an existing batch_request file and run the
utility.
3. Select the program and specify the execution date and time.
3. Parses each line in the flat file, checks the status field of the line, and
success.
processes the line if the status is not success
4. An XML file is generated for each line in the file, using the revision
rule, variant rule, and closure rule associated with the transfer mode. If
the rules are not specified in the line, default rules are used.
5. The report format (style sheet) is applied on the XML file and report HTML
files are generated. The datasets are exported during the transformation.
7. If the report location is specified as OS, the reports are saved at the
OS location specified in the file.
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
import_export_reports
Allows report definitions, their dependent data (for example, saved query
definitions and property set definitions), and their associated style sheets
to be exported from one Teamcenter server and imported to another Teamcenter
server.
Syntax
-import | -export | -execute
import_export_reports {-import -execute}
-u=user-id -p=password | -pf=password-file -g=group]
[-u=
-stageDir= directory -reportId= report-identifier -overwrite
-reportFile=xml-output-file] [-f=
[-reportFile= -f=xml-file] [-h
-h]
-h
Arguments
-import
Specifies the report definitions are to be imported to the Teamcenter server.
-export
Specifies the report definitions are to be exported from the Teamcenter server.
-execute
Generates a report in the command line. This argument requires the -f argument.
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-stageDir
Specifies the fully qualified name of the directory that contains all of the
report definitions and its associated data in predefined format.
-reportId
Specifies the ID of the report definition.
-overwrite
Overwrites the report definition by replacing query source, property set, and
style sheet definitions with different names. If you import again, using the
same names, the overwrite option does not override these definitions. These
definitions can be shared by multiple reports or applications so overriding
them may cause broader impact and unexpected results.
Note
-reportFile
Specifies the name of the XML containing the list of report templates.
-f
Specifies the name of an XML file containing report parameters. This argument
is used with the -execute arguments.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• The following command exports report definitions and associated data (style
sheets) to the file system pointed by the stageDir argument:
import_export_reports -export -u=<username> -p=<password> -g=<group>
-stageDir=<data directory> -reportId=<reportname>
Teamcenter interface
AppRegUtil
Communicates with the application registry, either as a stand-alone program or
within an application (such as an installation program), to:
• Check the existence or availability of an application registry.
-file
Specifies the file name of the configuration file containing the application
details and the application registry URL. Examples of application details are
AppGUID, launcher URL
AppGUID URL, portal launcher URL
URL, and webService URL
URL.
The file format must be Name=Value pairs, separated by the equal sign (=).
For formatting examples, see the AppRegUtil.data.default file in the $TC_DATA
directory.
default, rather than a file name, the utility uses the
If you specify default
AppRegUtil.data.default file in the $TC_DATA directory. This is a template
file you can either edit, or save and modify.
-appRegUrl
Specifies the URL of the application registry. The value can be passed as an
argument or as a property in the configuration file provided as an argument.
For more information, see the description of the -file argument.
-guid
Specifies the guid of the Teamcenter application instance.
-h
Displays help for this utility.
Environment
default, the TC_DATA environment
If the -file option is used with a value of default
must be available.
Restrictions
The file format of the configuration file specified by the -file argument must
be Name=Value pairs, separated by the equal sign (=). For more information
about formatting this file, see the AppRegUtil.data.default file in the
$TC_DATA directory. This is a template file you can either edit, or save
and modify.
Examples
The following examples illustrate use of the AppRegUtil utility.
Verifying the existence of the Application Registry
• To verify the existence of the application registry:
AppRegUtil -mode=verify -appRegUrl=application-registry-URL
or
AppRegUtil -mode=register -file=default
The data in the file must be Name=Value pairs. If the value of the -file
default, the utility uses the AppRegUtil.data.default
option is defined as default
file in the $TC_DATA directory. This is a template file you can either
edit, or save and modify.
The configuration contains the ApplicationRegistryURL property, which
provides the application registry information. The value of this property
can be overridden using the -appRegUrl= application-registry-URL on the
command line.
Unregistering a Teamcenter application instance with the Application Registry
or
AppRegUtil -mode=unregister -file=default
The data in the file must be Name=Value pairs. If the value of the -file
default, the utility uses the AppRegUtil.data.default
option is defined as default
file in the $TC_DATA directory. This is a template file you can either
edit, or save and modify.
The configuration contains the ApplicationRegistryURL property, which
provides the application registry information. The value of this property
can be overridden using the -appRegUrl= application-registry-URL on the
command line.
Content management
contmgmt_upgrade_8x
Adds a prefix to DITA object item IDs and updates all content references
with the correct extensions. This utility must be run after upgrading from a
Teamcenter release prior to 9.0 and after performing the other migration tasks.
For more information, see the Content Management Guide.
Syntax
-u=user-id
contmgmt_upgrade_8x [-u= -p=password | -pf=password-file -g=group]
-prefix=DITA-prefix]
[-prefix=
-dryrun]
[-dryrun
-dryrun [-h-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges.
-p
Specifies the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
-prefix
The prefix that will be added to all DITA objects during upgrade if they do not
already have this prefix. This prefix should begin with an alphabetic character.
-dryrun
Generates a report of the changes that will be made but does not update the
database. Places a text file that contains the old and new item_id values
and the old and new XML files that have updated content references in the
Teamcenter temporary directory.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To run a test to see which DITA objects will have their item_id values
changed and which content references will be changed:
contmgmt_upgrade_8x -u=infodba -p=pswd -g=dba –prefix=X -dryrun
• To change all the item_id values of DITA topics to begin with the prefix
and to update content references:
contmgmt_upgrade_8x -u=infodba -p=pswd -g=dba –prefix=X
contmgmt_migration_100
In Teamcenter 10 and later, a new relationship exists between the PSOccurrence
object between two related topics and the reference topic type that is
between the two topic types. When upgrading from a prior release, the
contmgmt_migration_100 utility must be run to add this relationship to
PSOccurrence objects. If more than one reference type exists between the two
topic types, the utility selects one and the selection is noted in a log file.
For more information, see the Content Management Guide.
Syntax
-u=user-id -p=password | -pf=password-file -g=group]
contmgmt_migration_100 [-u=
-clear]
[-clear
-clear
-dryrun]
[-dryrun
-dryrun [-h-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges.
-p
Specifies the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
-clear
Clears any existing Ctm0RefTopicTypeR relations before processing.
-dryrun
Generates a report of the changes to be made but does not update the database.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To run a test to see which PSOccurrences objects will have relationships
added:
bom_expand
Description
Expands the bill of materials (BOM) and generates a report on the BOM structure
and expansion statistics.
You can use this utility to find the total size and depth of a BOM structure as
well as the number of lines at each level of the structure.
This utility provides a bomset mode that can help you expand the BOM in
equal-sized sets without encountering memory issues.
Syntax
-u=user-id -p=password | -pf=password-file -g=group]
bom_expand [-u=
-item=item | -key=item-key
-revision_rule= revision-rule] [-rev=
[-revision_rule= -rev=revision]
-saved_variant_rule= saved-variant-rule]
[-saved_variant_rule=
-use_packing]
[-use_packing -show_unconfigured]
-use_packing [-show_unconfigured -show_unconfigured_variants]
-show_unconfigured [-show_unconfigured_variants
-show_unconfigured_variants
-props=comma-separated-list-of-property-names] [-level_props
[-props= -level_props]
-level_props
-output=output-filename] [-props=
[-output= -props= | -props_output=
comma-separated-list-of-property-names]
-bom_report_file= report-file-name] [-report_mode=
[-bom_report_file= -report_mode= [TOP
TOP | LEVEL | FULL
FULL]]
-no_verbose]
[-no_verbose -mem_debug]
-no_verbose [-mem_debug -bom_closure_rule= closure-rule]
-mem_debug [-bom_closure_rule=
-bomset]
[-bomset -bomset_criteria=[MEMORY
-bomset_criteria= MEMORY | NUMLINES | PERCENT
-bomset [-bomset_criteria= PERCENT]]
-bomset_help]
[-bomset_help
-bomset_help
-bomset_criteria_data=[Number–of–Lines
-bomset_criteria_data= Number–of–Lines | PERCENT
[-bomset_criteria_data= PERCENT]]
-bomset_override_data_complexity_preference= [true
[-bomset_override_data_complexity_preference= true | false
false]]
-bomset_use_mem_percentage_preference= percent]
[-bomset_use_mem_percentage_preference=
-create_absoccs]
[-create_absoccs
-create_absoccs
-create_absocc_ids]
[-create_absocc_ids
-create_absocc_ids [-h-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with or without administration
privileges. If this argument is used without a value, the operating system
user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-item
Specifies the item ID for which the associated BOM view revision (BVR) is
traversed. (BVRs are associated with revisions corresponding to the specified
item.)
-key
Specifies the key for which the associated BVR is traversed. (BVRs are
associated with revisions corresponding to the specified item.)
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
-level_props
Indicates whether to fetch all properties together for a BOM level during
expansion. If this flag is absent, fetches properties once for the entire
BOM after expansion.
-output
Directs the output to a specific file by specifying a file name.
-props_output
Lists BOM line properties separated by a comma that should be written to
output. The -props and -props_output arguments are mutually exclusive.
-bom_report_file
Specifies the report file name, for example, report.csv (CSV file type is
preferred).
-report_mode
Specifies report generation mode. Valid values are:
• TOP prints expansion report for top node of BOM only.
LEVEL.
The default mode is LEVEL
-no_verbose
Indicates whether to write detailed output to the console.
-mem_debug
Indicates whether to print additional debug information related to memory
usage during BOM expansion.
-bom_closure_rule
Specifies BOM closure rule to apply to BOM window during BOM expansion.
-bomset
Indicates whether expansion should be done in equal-sized sets of BOM lines.
-bomset_criteria
Specifies creation criteria of BOM sets for expansion. Valid values are:
• MEMORY
The BOM is divided and expanded in sets that occupy the same memory.
This memory is calculated based on the available system physical memory
and BOM size.
• NUMLINES
The BOM is divided and expanded in sets that contain the same number of
BOM lines. Use the argument -bomset_criteria_data to specify the number
of lines for each BOM set.
• PERCENT
The BOM is divided and expanded in sets that contain the number of lines
which are the same percent as the total number of BOM lines in the BOM. Use
the argument -bomset_criteria_display to specify this percent.
MEMORY.
The default is MEMORY
-bomset_help
Prints examples for using bomset options.
-bomset_criteria_data
-bomset_criteria. Valid values
Specifies data for BOM set creation to use with -bomset_criteria
PERCENT.
are NUMLINES or PERCENT
This argument should be used when -bomset_criteria_data=NUMLINES or
-bomset_criteria_data=PERCENT.
-bomset_criteria_data=PERCENT
For example, if you have a 10,000 item BOM and you want it to be divided and
expanded in sets each having the size 1,000 items, include the following
arguments in your command:
• -bomset -bomset_criteria=NUMLINES
• -bomset_criteria_data=1000
If you want a 10,000 item BOM to be divided and expanded in sets that are 10
percent of its size, include the following arguments in your command:
• -bomset -bomset_criteria=PERCENT
• -bomset_criteria_data=10
-bomset_override_data_complexity_preference
Specifies whether BOM lines have complex data, such as incremental changes
and absolute occurrences, which can decide the size of the BOM set when the
MEMORY. The valid values are true or false
-bomset_criteria value is set to MEMORY false.
false.
The default value is false
-bomset_use_mem_percentage_preference
Specifies the percent of system memory available to use for expansion. Valid
100.
values must be set between 0 and 100
-create_absoccs
Creates absolute occurrence appearance path node (APN) objects on a BOM
structure during expansion.
-create_absocc_ids
Creates or uses existing absolute occurrence IDs on a BOM structure during
expansion.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
• BOM expansion with out properties, using revision rule and variant rule.
bom_expand -u=user-id -p=password –pf=password-file —item=item -rev=revision
-revision_rule=revision-rule -saved_variant_rule=
saved-variant-rule
• BOM expansion with properties, using revision rule and variant rule and
closure rule.
bom_expand -u=user-id -p=password –pf=password-file —item=item
-rev=revision -revision_rule=revision-rule -saved_variant_rule=
saved-variant-rule -props=RAC-level_props
bom_report_file=report–file–name -report_mode=FULL
• BOM expansion with properties, using revision rule and variant rule and
providing output in a file (txt).
bom_expand -u=user-id -p=password –pf=password-file —item=item
-rev=revision -revision_rule=revision-rule -saved_variant_rule=
saved-variant-rule -props=RAC-level_props -output=output-filename
• BOM expansion with properties, using revision rule and variant rule and
closure rule with properties, using revision rule and variant rule and
providing BOM report file (csv) (BOM data).
bom_expand -u=user-id -p=password –pf=password-file —item=item
-rev=revision -revision_rule=revision-rule -saved_variant_rule=
saved-variant-rule -props=RAC-level_props
bom_report_file=report–file–name -report_mode=FULL
bom_roll_up_report
Creates BOM properties rollup reports. The reports can be created
systematically by a task scheduler to generate weekly or daily reports to track
property changes of assembly structures.
Syntax
-u=user-id -p=password | -pf=password-file -g=group]
bom_roll_up_report [-u=
-item=item | [-key=
{[-item= -key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2…,keyAttrN=keyValN]]]}
-rev=revision] [-revrule=
[-rev= -revrule=revision-rule]}
-effdate=mm:dd:yyyy:HH:MM:SS | now | today
[-effdate= today]
-varrule=variant-option] [-name=
[-varrule= -name=name] [-desc=
-desc=description]
-template= name:scope-context [-folder
-folder]
-folder [-h-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-item
Specifies the item to be used as the root line for the BOM properties rollup
report.
-key
Specifies the key to be used as the root line for the BOM properties rollup
report. Use the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
-varrule
Specifies the variant option set to use when setting the variant options of
the assembly structure. If this argument is omitted, default variant options
are used or no options are set.
-name
Specifies the name of the BOM properties rollup report. If this argument is
omitted, an auto-generated name is created.
-desc
Contains a description of the BOM properties rollup report. If this argument
is omitted, an autogenerated description is created. The autogeneration occurs
only if a default description is defined in the BOM properties rollup template
that was used to create the report.
-template
Specifies the name and scope context of the BOM properties rollup template
to use when creating the BOM properties rollup report. Scope context is the
user, group, or site scope identifier.
-folder
Indicates that the system is to place the new BOM properties rollup report
dataset into the users Newstuff folder. If user privileges do not allow for
BOM properties rollup report datasets to be attached to item revisions, the
report is placed in the user's Newstuff folder.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• The following example creates a BOM properties rollup report with autologin,
autogeneration options, and attaches the report to the item revision:
bom_roll_up_report -item=12345678 -template=”masstemplate:engineering”
• The following example creates a BOM properties rollup report with autologin,
autogeneration options, and attaches the report to the Newstuff folder:
bom_roll_up_report -item=12345678 -template=”masstemplate:engineering” -folder
• The following example creates a BOM properties rollup report with autologin
and configures the assembly:
bom_roll_up_report -item=12345678 -rev=B -revrule=”Released”
-effdate=02:20:2006 -varrule=”High performance option set” -name=”My Report”
-desc=”Validating mass values.” -template=”masstemplate:engineering”
cleanup_arr_absoccdata
Allows a user to find and report bad absolute occurrence data that was created
during a Save As operation. The bad absolute occurrence data is created if the
item being copied has assembly arrangement data associated with it.
Note
Syntax
cleanup_arr_absoccdata -u=user-ID {-p=
-p=password | -pf=password-file} [-g=
-g=group]
report]
[report
report
destroy_item=itemID ]
[destroy_item=
destroy_all]
[destroy_all
destroy_all
-findDataWithInvalidQual]
[-findDataWithInvalidQual
-findDataWithInvalidQual
-removeDataWithInvalidQual]
[-removeDataWithInvalidQual
-removeDataWithInvalidQual
-output=output_file ]
[-output=
-h]
[-h
-h
Arguments
-u
Specifies the user ID. The user must have administrative privileges.
If this argument is used without a value, the operating system user name
is used.
Note
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
-report
Searches the entire database and reports all bad absolute occurrence data.
-destroy_item
Destroys bad data for one item ID that was created by a Save as operation. The
-item parameter is mandatory for this argument; otherwise, the utility fails.
-destroy_all
Destroys all bad absolute occurrence data found in the database. If the -item
parameter is provided, the utility fails.
-findDataWithInvalidQual
Searches the entire database and output UIDs of absolute occurrence data with
invalid or stubbed absolute occurrence data qualifiers at a replica site.
-removeDataWithInvalidQual
Destroys all absolute occurrence data with invalid or stubbed absolute
occurrence data qualifiers at a replica site.
-output
Contains information about bad absolute occurrence data during report modes.
If not specified, the cleanup_arr_absoccdata.txt default file is used. For
destroy modes, the report indicates whether destroy is successful. In the
output file, the following information will be dumped: saved as item ID, saved
as item name, original item ID, original item name, and UID of bad absolute
occurrence data.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
create_or_update_bbox_and_tso
This utility performs the following tasks:
• UGMASTER)
Creates, updates or deletes bounding box data from NX (UGMASTER
UGMASTER and JT
DirectModel)
(DirectModel
DirectModel datasets.
o JT datasets not having a .tso file. Using this report, the same utility
can generate Dispatcher requests so the translation (conversion to the
bounding box and TSO) occurs on the dedicated Dispatcher machine.
Syntax
-u=user-id -p=password | -pf=password-file
create_or_update_bbox_and_tso [-u=
-g=group] -mode=usermode -translation_mode= operatingmode -generate_ets_request
-delete_all_bboxes -dataset= dataset_uids -dataset_list= filename
-output_dir= dirname [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-mode
Specifies one of the following modes:
• query
Generates a report of NX or JT datasets that require updates to the
bounding boxes, TSO files (JT files only), or missing UGPartBBox forms
(NX datasets only).
• process
Creates or updates bounding boxes, TSO files (for JT datasets only) or
both for a set of NX or JT datasets.
• query+process
Generates a report of NX or JT datasets that require updates to the bounding
boxes or TSO files (JT files only). It then creates or updates bounding
boxes or TSO files (for JT datasets only) for the identified datasets.
• delete
Deletes the specified datasets.
-translation_mode
Specifies one of the following translation modes:
• JTTOBBOX
Creates or updates the bounding boxes in JT datasets.
• JTTOTSO
Creates or updates the TSO files in JT datasets.
• JTTOBBOX+JTTOTSO
Creates or updates the bounding boxes and TSO files in JT datasets.
• NXBBOXTOBBOX
Creates or updates the bounding boxes in NX datasets.
• processAll
Use with the NXBBOXTOBBOX mode to force creation of bounding boxes for
all NX datasets.
• NXBBOXFORM
Creates a report listing all NX datasets for which the associated
UGPART-BBOX form is not available. You can use this report file with the
ugmanager_refile utility to generate UGPART-BBOX form data.
-generate_ets_request
Specify this argument when you specify query mode and are working only with JT
datasets. Creates a Dispatcher request in the database for each JT dataset
that needs updates to bounding boxes or TSO files. Before you use this
argument, ensure the Dispatcher translation service is configured and running,
as described in Getting Started with Dispatcher (Translation Management).
-delete_all_bboxes
Deletes all the bounding boxes, multibounding boxes and relations between them
from the database. (It does not delete TruShape data and you should re-create
the TSO files if necessary.)
-dataset
Specifies one or more dataset UIDs as a string separated with commas, in
the format:
ds1, ds2, ....., dsn
• Create bounding boxes for all NX datasets in the database. You can do this
in one of two ways:
o Create a report file of the datasets that do not have bounding box
information as a log file. Process the log file and create the missing
bounding box information on the dataset. This method is suitable if
you have a large quantity of data to process as you can split the
report log file can be split into multiple files, allowing the utility
to process fewer datasets in each execution:
create_or_update_bbox_and_tso -u=user> -p=password> -g=group>
-mode=query -translation_mode=NXBBOXTOBBOX -output_dir=c:\temp
• Create a report file of all NX datasets in a log file that do not have an
associated UGPART-BBOX form:
create_or_update_bbox_and_tso -u=<user> -p=<password> -g=<group>
-mode=query -translation_mode=NXBBOXTOBBOX
-output_dir=c:\temp\report.txt
• Delete all bounding box and TruShape data associated with a specified
item revision:
create_or_update_bbox_and_tso -u=<user> -p=<password> -g=<group>
-mode=delete -dataset=uid_of_item_rev1 or
absocc1[,uid_of_item_rev2 or absocc2, …]
• Delete all bounding box and TruShape data associated with the parts
specified in an input file:
create_or_update_bbox_and_tso -u=<user> -p=<password> -g=<group>
-mode=delete -dataset_list=<path of file containing a list of uids of item
revisions or absolute occurrences separated by new lines>
generate_tc_ps_path
Runs an ITK program that accepts the changed part list and generates the paths
up to the top assembly for each item revision.
Syntax
-u=user-id -p=password | -pf=password-file -g=group]
generate_tc_ps_path [-u=
-revision_rule= rule-name] -item_rev_list= rev-file-name
[-revision_rule=
-item_type=item-type] [-out_file=
[-item_type= -out_file=output-file-name]
-configure_top_level_revs= yes | no
-output_format= new | old [-configure_top_level_revs= no]
-rev_full_file= rule-file-name [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-item_rev_list
Defines the file containing the list of item revisions. Typically,
this file is the output from the find_released_item_rev utility or the
find_recently_saved_item_rev utility. This file can also be custom made.
-revision_rule
Defines the revision rule on the basis of which the configured parent is
returned. These revision rules are used to determine whether they configure
the item revisions specified in the item_rev_list file.
This argument may be repeated for various revisions rules.
This argument is not allowed if the rev_rule_file argument is defined,
specifying the name of a file containing the list of revision rules. Otherwise,
this argument is mandatory.
-out_file
Specifies the file to be used to write the utility output. If not defined, the
output is written in the standard output.
-output_format
Specifies whether the utility output is in new format or old format. This
argument is optional. If it is not defined, the new format is used. Possible
old.
values for this option are new and old
The old format is as follows:
@DB/VEH0001/004,@DB/VPPS0002/001,@DB/VPPS0006/
001,@DBIA0009/002:Precise;Aplp2 Best w/PDI
-item_type
Specifies the item type of the top-level assembly. The utility lists only
those paths with top-level assemblies of this type. In cases where such
assemblies have parents, the defined path begins at the item with the given
type. This argument is optional.
-rev_rule_file
Lists all the revisions rules to be used for the found item revisions.
This argument is optional only if the revision rule arguments are defined;
otherwise, this argument is required.
If both the revision_rule argument and the rev_rule_file argument are defined,
the rev_rule_file argument takes precedence.
-configure_top_level_revs
Specifies whether to configure the top-level revision. This argument is
optional.
If Yes is specified, the top-level item of the changed item revision is
configured and the changed item revision is checked to determine if it uses
the top-level item revision.
If No is specified, or the argument is not specified, the top levels are
not configured.
-h
Displays help for this utility.
Environment
This utility should be run from a shell where the Teamcenter environment is set.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
To generate a path for the item revisions specified in a text file:
generate_tc_ps_path -item_rev_list=released_items.txt
-revision_rule=revision-rule-name -output_file=path_list.txt
-output_format=new -configure_top_level_revs=no
identify_non_structure_edges
Marks parent and child items that are ignored when adding, listing, or removing
entries in spatial indexes. There are four ways to use this utility.
• Adding and specifying what to add using parallel lists of item IDs or
UIDs. For example, in a parallel list of parents and children, the first
parent goes with the first child, the second parent goes with the second
child, and so on.
• Adding and specifying what to add by a parent item type and child item type.
Syntax
-u=user-ID [-p=
identify_non_structure_edges [-u= -p=password | -pf=password-file]
-g=group] ]
[-g=
[-add -parent_item_id= parent-object1, parent-object2, ... | @filename}
-add {-parent_item_id=
-parent_item_id={
-child_item_id={child-object1, child-object2, ... | @filename} |
-child_item_id=
-parent_uid={parent-uid1, parent-uid2, ... | @filename}
-parent_uid=
-child_uid={child-uid1, child-uid2, ... | @filename} |
-child_uid=
-parent_item_type= parent-type -child_item_type= child-type} ]
[-remove -parent_item_id= parent-object1, parent-object2, ... | @filename
-remove {-parent_item_id=
-parent_item_id={
-child_item_id={child-object1, child-object2, ... | @filename} |
-child_item_id=
-parent_uid={parent-uid1, parent-uid2, ... | @filename
-parent_uid=
-child_uid={child-uid1, child-uid2, ... | @filename} } ]
-child_uid=
-all [parent1, parent2, ... | @ filename] |
-list {-all
[-list
[child1, child2, ... | @ filename] }
product= product1, product2, …}
product={
{product=
-parent_item_id= parent1, parent2, … | @filename}
-parent_item_id={
[-parent_item_id=
-child_item_id= child1, child2, … | @filename} ] |
-child_item_id={
[-child_item_id=
-parent_uid= parent1, parent2, … | @filename}
-parent_uid={
[-parent_uid=
-child_uid= child1, child2, …| @filename} ] }
-child_uid={
[-child_uid=
-h]
[-h
-h
Arguments
-u
Specifies the user ID. The user must have administrative privileges.
If this argument is used without a value, the operating system user name
is used.
Note
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
-add
Adds entries for parent and child pairs. You can specify a parent and child
object pair using item IDs or UIDs. You enter the identifiers as parallel,
comma-separated lists for the parent and child flags.
For long lists of values, you can create parent and child object files that
contain a separate identifier on each line. Use the @file-name values to supply
the file names on the command line in place of the comma-separated lists.
Alternatively, you can use the -parent_item_type= parent-type and
-child_item_type= child-type flags to specify a parent item and child item
type pair.
-remove
Removes entries for parent and child pairs. You can specify a parent and child
object pair using item IDs or UIDs. You enter the identifiers as parallel
comma-separated lists for the parent and child flags.
For long lists of values, you can create parent and child object files that
contain a separate identifier on each line. Use the @file-name values to supply
the file names on the command line in place of the comma-separated lists.
-list
Lists all entries when used with the -all argument without the optional parent
or child object specifications. You can filter the listed entries by specifying
parent or child objects using item IDs or UIDs. You can narrow the filter by
specifying both parent and child objects to get a list of entries containing the
parent objects that have at least one of the specified child objects. You enter
the identifiers as comma-separated lists for the parent and child arguments.
Optionally, you can list only those entries associated with one or more
specified products using the –product= product-name argument. You can filter
the product entries by specifying parent or child objects or both parent and
child objects in the same way as the -all argument.
For long lists of values, you can create parent and child object files that
contain a separate identifier on each line. Use @file-name values to supply
the file names on the command line in place of the comma-separated lists.
-h
Displays help for this utility.
Examples
• pitem1, pitem2 and citem1
To add parent-item and child-item pairs pitem1 citem1, citem2
citem2,
enter the following command on a single line:
identify_non_structure_edges -u=infodba -p=infodba -g=dba
-add -parent_item_id=pitem1,pitem2,pitem3
-child_item_id=citem1,citem2,citem3
• To add parent-item and child-item pairs where the parent item is of type
ItemType2, enter the following
ItemType1 and the child item is of type ItemType2
command on a single line:
identify_non_structure_edges -u=infodba -p=infodba -g=dba
-add -parent_item_type=pitemtype
-child_item_type=citemtype
Note
This example uses the parent and child item type, rather than the
parent and child item ID.
• To list all parent-item and child-item pairs, enter the following command
on a single line:
identify_non_structure_edges -u=infodba -p=infodba -g=dba -list
-all
• To remove parent-item and child-item pairs using item IDs, enter the
following command on a single line:
identify_non_structure_edges -u=infodba -p=infodba -g=db
-remove -parent_item_id=pitem1,pitem2,pitem3
-child_item_id=citem1,citem2,citem3
• To remove parent-item and child-item pairs using UIDs, enter the following
command on a single line:
identify_non_structure_edges -u=infodba -p=infodba -g=dba
-remove -parent_uid=puid1,puid2,puid3,puid4
-child_uid=cuid1,cuid2,cuid3,cuid4
• To remove parent-item and child-item pairs using a file containing the item
IDs, create a parent and child file containing a single ID on each line. The
pairs are determined by the order of the values in the file, for example:
Create a parentList.txt file with the following contents:
pitem1
pitem2
:
pitemN
item_to_part_design
Converts instances of the Item class and its subtypes to specified instances
of the Part and Design classes or their subclasses or subtypes. Use this
utility if you have existing product structure containing items that you want
to convert to separate part and design (CAD) objects. You must create a text
file that provides the necessary input for the conversion process.
Note
You must restart the Teamcenter server after running this utility for
the new objects to be visible in the rich client.
• Specify the source as the Item class or its subtypes and specify the target
as the Part and Design classes, their subclasses, or subtypes.
Caution
After you run this utility, you cannot revert the changes.
You must analyze the impact on business rules (for example, property
rules and GRM rules) of the conversion and then plan accordingly. The
utility does not check the validity of the business rules.
Performance may be poor if you try to convert the entire database or a
large structure. If possible, limit the structure size or the number of
objects to convert.
• type_based
Input from the user is an item class or its subtype, which is a source
type. The user specifies a target type. All objects in the database of
source type are converted to the target type.
• item_id_based
In this mode, the user specifies a comma-separated list of item IDs,
together with the source and the target types. Only the valid item IDs
listed in the input file are converted from the source type to the target
type.
• structure_based
The user specifies the item identifier of the top-level item in the
structure, together with the source and the target types. This mode
converts all the valid children of the top-level item to the target type.
The user must create a text file that contains input to the entire conversion
process.
Syntax
-u=user-id -p=password | -pf=password-file -g=group]
item_to_part_design [-u=
-itemid=item-id | -key_property_list= key-id-list]
-mode=type_based | item_id_based [-itemid=
{-mode=type_based
-itemid=item-id | -itemkey= key-id] }
| structure_based [-itemid=
-file=input-file-name
-rf=report-file-name] [-dryRun=
[-rf= -dryRun=true/on | false/off]
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-mode
type_based, item_id_based
Specifies type_based item_id_based, or structure_based
structure_based.
-itemid
Specifies the ID of the item to be exported. Valid only if no input file is
specified using the -i option.
-itemkey
Specifies the key of the object. You can use the -itemid argument or the
-itemkey argument.
To find the key of an object, use the get_key_string utility.
For more information, see the Business Modeler IDE Guide.
-key_property_list
Specifies the key attributes of the object except the item ID.
To find the key of an object, use the get_key_string utility.
For more information, see the Business Modeler IDE Guide.
-file
This argument is mandatory for all the conversion modes.
Specifies the name of the input file containing conversion parameters,
including the full path. The input file is a list of key-value pairs. The
keys indicate the source and target item types. The input file has the
following format:
source_class_name=Item class | SubType
target_class_name=Part/Design class | SubClass | SubType
item_id_list=Name of input file
Ensure you use internal names for the source and target.
Note
-rf
This optional argument specifies the name and location of the report file.
If you do not specify a name and location, the system writes the file to
C:\temp on Microsoft Windows systems or /tmp on other systems. It is not
applicable in type_based mode.
-dryRun
This optional argument causes the utility to validate if the specified items
or structure can be validate, but does not perform the conversion. Valid
values are true or on and false or off (case sensitive). It is not applicable
in type_based mode.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
• Execute this utility when no other activity is present on the database.
• This utility changes only the type of item object, its revisions, master
form, and revision master form.
• The utility does not support source and target classes or subtypes other
than those listed in the description.
• The following example uses item_id_based mode and converts all of the valid
items listed in the Sample.txt file from source type to target type. No
dry run is performed, but a report is written to the ReportFile.txt file.
item_to_part_design -u=infodba -p=infodba -g=dba
-mode=item_id_based -rf=”C:\temp\ReportFile.txt”
-file="C:\Sample.txt" -dryRun=false
• The following example uses item_id_based mode and converts all of the valid
items listed in the Sample.txt file from source type to target type. A dry
run is performed, and a report is written to the default location.
item_to_part_design -u=infodba -p=infodba -g=dba
-mode=item_id_based -file="C:\Sample.txt" -dryRun=true
• The following example uses structure_based mode and converts all the valid
items and children of the specified item identifier from a source type to a
target type defined in the Sample.txt file. No dry run is performed, but
a report is written to the ReportFile.txt file.
item_to_part_design -u=infodba -p=infodba -g=dba
-mode=structure_based
-rf=”C:\temp\ReportFile.txt” -file="C:\Sample.txt"
-dryRun=false -itemId=000008
Note
multiple_svr_variant_configurator
Assists in creating configured structure representations using saved variant
rules (SVRs) from unconfigured structure representations.
• Use the bomwriter utility to generate an unconfigured PLM XML file
containing product structure information, including the variant conditions
for child lines.
Syntax
-u=user-id -p=password | -pf=password-file
multiple_svr_variant_configurator [-u=
-g=group] -product_id= product-item-ID -product_rev= product-revision-ID
-dataset_name= unconfigured-dataset [-log_file=
-log_file=file-name]
-directory_name= directory-name
-svr_input_file= file-name | -process_all_svrs=Y
{-svr_input_file= -process_all_svrs=Y} [-is_import_required=Y
-is_import_required=Y]
-is_import_required=Y
-import_utility= path-to-utility]
[-import_utility=
-import_utility_parameters= utility-parameters] [-h
[-import_utility_parameters= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-product_id
Specifies the product item ID. Specify the top level of the assembly for which
you want to generated configured PLM XML files.
-product_rev
Specifies the product revision ID. Specify the top level of the assembly
containing the SVRs.
-dataset_name
Specifies the name of the dataset under the product revision containing
the unconfigured files. This must be a DirectModelAssembly dataset with a
TCEng_rdv_plmxml_unconfigured relation placed under the product revision
containing the unconfigured PLM XML file.
-log_file
Specifies the full path to the log file in which activity if recorded. Use
this argument only when importing the pruned PLM XML files.
-directory_name
Specifies the full path to the directory in which the pruned PLM XML files are
stored. The user running the utility must have write access to this directory.
-svr_input_file
Specifies the full path to the file containing the SVRs with which to configure
the assembly.
-process_all_svrs argument
You must specify either the -svr_input_file or the-process_all_svrs
for the utility to run. If both are specified, -svr_input_file takes
precedence.
-process_all_svrs
Specifies that all SVRs are processed. The valid value is Y.
-process_all_svrs argument
You must specify either the -svr_input_file or the-process_all_svrs
for the utility to run. If both are specified, -svr_input_file takes
precedence.
-is_import_required
Specifies whether the pruned files are imported. Valid values are Y and N. The
default setting is N.
If you set this argument to Y, you must set the -import_utility and
-import_utility_parameters arguments.
-import_utility
Specifies the full path to the import_file utility, used to import the pruned
files.
If you set this argument, you must set the -import_utility_parameters argument.
-import_utility_parameters
Sets the required parameters of the import_file utility. Specify parameters in
a single string. Separate each parameter with a hash sign (#). For example:
-import_utility_parameters=#-u=userID#-p=password#-g=group>#-d=ConfiguredAll
#-ref=ConfiguredAssembly#-type=DirectModelAssembly#
-relation=TCEng_rdv_plmxml_configured#
-desc=ConfiguredAll#-use_existing=no#-f=#-item=ABC00004#-revision=001#
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
Before running this utility, there must be a DirectModelAssembly dataset
with a TCEng_rdv_plmxml_unconfigured relation placed under the product
revision containing the unconfigured PLM XML file. Import the dataset using
the import_file utility, ensuring that the variant XML preexists as a named
reference of the unconfigured dataset.
Examples
• In the following example, all SVRs listed in the input_svr.txt file are
used to generate multiple pruned PLM XML files, one file for each SVR. The
files are not imported. The pruned PLM XML files are generated from the
multi_svr directory.
multiple_svr_variant_configurator -u=userID -p=password -g=admin -product_id=ABC004
-product_rev=001 -dataset_name=ABC00004Unconfigured2
-directory_name=c:\temp\multi_svr -svr_input_file=c:\temp\multi_svr\input_svr.txt
• In the following example, all SVRs under the ABC004/001 product revision
are used to generate multiple pruned PLM XML files, one file for each
SVR. The files are not imported. The pruned PLM XML files are generated
from the multi_svr directory.
multiple_svr_variant_configurator -u=userID -p=password -g=admin -product_id=ABC004
-product_rev=001 -dataset_name=ABC00004Unconfigured2
-directory_name=c:\temp\multi_svr -process_all_svrs=y
• In the following example, all SVRs under the ABC004/001 product revision
are used to generate multiple pruned PLM XML files, one file for each SVR.
The files are then imported back into the Teamcenter database.
The parameters for the import_file utility are set in a single string, each
parameter separated by a hash mark (#). The -d parameter specifies the
prefix to the dataset names created upon import, followed by an underscore.
For example:
ConfiguredAll_
You must include the -f parameter in the parameter string for the
import_file utility. Do not assign it a value. The import utility
automatically supplies the pruned PLM XML files.
ps_exportconfignxassembly
Enables a site to export a configured NX assembly. The assembly is configured
using the given revision rule and saved variant rule.
Syntax
-u=user-id -p=password | -pf=password-file -g=group]
ps_exportconfignxassembly [-u=
-item=top-item-id | -key=keyAttr1=keyVal1 [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
-rev=top-rev-id [-revrule=
-revrule=revision-rule]
-variant= saved-variant-rule [-scopeitem=
-scopeitem=item-id]
-scoperev=rev-id] [-display
[-scoperev= -display] -verbose=y | yes | n |no]]
-display [-verbose=
-exclude=itemid1,itemid2,itemiid3,...
[-exclude=
| -excludekeys= keyAttr1=keyVal1 [,keyAttr2=keyVal2]…[,keyAttrN=keyValN];
keyAttr1=keyVal1 [,keyAttr2=keyVal2]…[,keyAttrN=keyValN];...] [-h -h]
-h
Arguments
-u
Specifies the user ID.
This is a required argument unless the TC_auto_login site preference is set.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
This is a required argument unless the TC_auto_login site preference is set.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
This is a required argument unless the TC_auto_login site preference is set.
If used without a value, the user's default group is assumed.
-item
Specifies the item ID of the item to be exported. This argument is required
unless -key is defined. If both -item and -key are defined, -key takes
precedence.
-key
Specifies the key of the item to be exported. This argument is required unless
-item is defined. If both -item and -key are defined, -key takes precedence.
To find the key of an object, use the get_key_string utility.
For more information, see the Business Modeler IDE Guide.
-rev
Specifies the revision ID of the top line of the structure to be exported.
This argument is optional. If specified, the rest of the structure below the
top line is configured by the -revrule argument. If not specified, the entire
exported structure is configured by the -revrule argument.
-revrule
Specifies the revision rule to use to configure the structure. This argument
is required.
-variant
Specifies the name of the variant rule to apply to configure the structure.
This argument is required.
-scopeitem
This is an optional argument. Include this argument if and only if the
given variant rule is not attached to the exporting item (top item) but is
attached to this scope item’s revision. The item revision is specified in
the scoperev argument.
-scoperev
This is an optional argument. Include this argument if and only if the given
variant rule is not attached to the exporting item (top item) but is attached
scoperev.
to this scoperev
-display
Displays the output folder to the screen. This argument is optional. If this
argument is not specified, the output folder is not displayed at the end
of the successful operation.
-verbose
Prints the debug statement. This argument is optional. The default value is n.
-exclude
Specifies the list of item IDs to exclude from exporting after the structure
is configured using the revision rule and saved variant rule. This argument
is optional.
-excludekeys
Specifies the list of keys to exclude from exporting after the structure is
configured using the revision rule and saved variant rule. This argument
is optional.
-h
Displays help for this utility.
Environment
NX must be installed and configured.
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
The files are created in the folder specified by the TC_TMP_DIR variable.
The value of TC_TMP_DIR must be set to the desired destination directory
temporarily before running the utility.
Examples
• Exports TopAssmRevA after configuring the structure below the top line with
the Latest Working revision rule and Tire200 saved variant rule. SubAssm1
is excluded from the export even though it was configured.
ps_exportconfignxassembly -u=infodba -p=infodba -g=dba
-item=TopAssm1 -rev =TopAssmRevA -revrule=Latest Working
-variant=Tire200 -display -verbose=y -exclude=SubAssm1
• Exports TopAssmRevA after configuring the structure below the top line with
the Latest Working revision rule and Tire200 saved variant rule. There
is no exclusion list provided in this example.
ps_exportconfignxassembly -u=infodba -p=infodba -g=dba
-item=TopAssm1 -rev =TopAssmRevA -revrule=Latest Working
-variant=Tire200 -display -verbose=n
• Exports SubAssmRevA after configuring the structure below the top line with
the Latest Working revision rule and Tire200 saved variant rule. The saved
TopAssmRevA.
variant rule is attached to TopAssmRevA
ps_exportconfignxassembly -u=infodba -p=infodba -g=dba
-item=SubAssm1 -rev =SubAssmRevA -revrule=Latest Working
-variant=Tire200 -scopeitem=TopAssm1 -scoprev=TopAssmRevA
ps_rename_bvrs
Renames BOM views and BOM view revisions using the current naming scheme. The
new name can differ from the old name because the naming scheme has changed
or because the name of the view type has changed.
By default, the utility runs on all BOM views and BOM view revisions in the
database, but it can accept an item ID argument (including wildcards) or a
key argument, defining a set of objects to rename.
Syntax
-u=user-id -p=password | -pf=password-file -g=group]
ps_rename_bvrs[-u=
ps_rename_bvrs
-item=item_pattern]
[-item=
| -key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]]
-view=view-type] [-h
[-view= -h]
-h
Arguments
-u
Specifies the user ID.
This is a required argument unless the TC_auto_login site preference is set.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
This is a required argument unless the TC_auto_login site preference is set.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
This is a required argument unless the TC_auto_login site preference is set.
-item
Specifies which BOM views or BOM view revisions to rename by a pattern match
on the parent item ID.
-key
Specifies which BOM views or BOM view revisions to rename by key. Use the
following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
-view
Specifies which BOM views or BOM view revisions to rename by BOM view type.
The default is to rename BOM views or BOM view revisions of all types.
-v
Verbose mode.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities
and the following preferences:
TC_ignore_case_on_search
TC_pattern_match_style
For more information about these preferences, see the Preferences and
Environment Variables Reference.
Files
As specified in Log files produced by Teamcenter.
Restrictions
Wildcard characters used in the -item argument may require enclosure in double
quotation marks to prevent the shell from expanding them.
Examples
• To update names of all BOM views and BOM view revisions (BVRs) in the
database, enter the following command:
$TC_ROOT/bin/ps_rename_bvrs
• Consider a site where the Manufacturing BOM view type is renamed to M Site
1. To rename all BOM views and BOM view revisions with parent item IDs
beginning pbx to agree with the new name, enter the following command
on a single line:
$TC_ROOT/bin/ps_rename_bvrs -view="M Site 1" -item="pbx*"
ps_traverse
Traverses a product structure and reports BOM line attributes and workspace
attribute values in a file in delimited format. It also sets an assembly to
precise and releases/transfers ownership of the item revisions that constitute
the structure. The inputs for these are taken from a configuration file and
the input for product structure configuration are taken from the command line
options.
A configuration file for input is mandatory. If the te.cfg file exists in
the current directory, it is considered. If not, a configuration file must
be specified by the -cfg options. A sample configuration file is provide in
the $TC_ROOT directory.
Syntax
-u=user-id -p=password | -pf=password-file -g=group]
ps_traverse [-u=
-itemid= item-to-traverse
-rev=revision-for-item-to-traverse
-revrule=revision-rule-to-configure-BOM-window]
[-revrule=
-viewtype=type-of-item-revision-BVR-to-traverse]
[-viewtype=
-variant=saved-variant-object-to-configure-BOM-window]
[-variant=
-log=log-file-for-session-output]
[-log=
-packlines= true | false
[-packlines= false]
-cfg=configuration-file-for-options]
[-cfg=
-report=report-file-for-output]
[-report=
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-itemid
Specifies the ID of the item for which the associated BOM view revision (BVR)
is traversed. (BOM view revisions are associated with revisions corresponding
to the specified item.)
-rev
Specifies the revision of the item specified by the -itemid argument. The
revision must have an associated BVR.
-viewtype
Specifies the type of the BVR to be traversed.
-revrule
Specifies the revision rule used to configure the BOM window. The default
Working.
revision rule is Latest Working
-variant
Specifies the saved variant used to configure the BOM window. If more than one
saved variant exists, the first one found is considered.
-log
Specifies the log file to which the output is directed. The default file
te.log.
is te.log
-report
Specifies the file to which the report is written. The default file is
tereport.txt.
tereport.txt
-packlines
Indicates whether to pack or unpack BOM lines.
-cfg
te.cfg.
Specifies the input configuration file. The default file is te.cfg
-h
Displays help for this utility.
Configuration
File Entries
The configuration file is a text file in which entries must be made under the
following separate headings:
bomreport=
Valid values for this attribute are the display names of columns in
No., and
Structure Manager, for example, Rule configured by and Sequence No.
are case sensitive. Values listed in the columns are reported for each
node in the BOM.
woreport=
The values of these object attributes in workspace listed under this
entry are reported.
formattributes=
The form attributes to be reported are listed under this string. These
Name:attribute. The form values are
should be in the format Form Type Name:attribute
truncated to 200 characters.
action=
The actions to be performed while traversing product structure are listed
under this heading. The following actions are supported:
• fastrelease
• changeowner
• setprecise
Note
relstat=
Specifies the release status to be applied if the specified action is
fastrelease.
fastrelease
newowner=
Lists the new owner to whom the object ownership is transferred if the
changeowner action is specified.
alternate=
No.
Specifies whether alternates are processed. Valid values are Yes and No
delimiter=
Specifies the delimiter used to separate attribute values in report
generation. The default delimiter is a semicolon (;;).
columnwidth=
Specifies the attribute values used In report generation. The default
column width is 20 characters.
Examples
Following is the content of the ps_traverse.cfg sample configuration file,
which is located in the $TC_ROOT\sample\examples directory.
alternate=
yes
bomreport=
BOM Line Name
woreport=
Name
Revision
Owner
formattributes=
delimiter=
#
columnwidth=
25
action=
#fastrelease
#changeowner
#setprecise
relstat=
X
newowner=
infodba
group=
dba
ps_upload
Creates an imprecise product structure based on an input file.
Syntax
ps_upload -u=user-id -p=password | -pf=password-file -g=group] [-o=
[-u= -o= yes | no
no]
-f]
[-f -c=
-f [-c= Item | Architecture -t=type] [-v
Architecture] [-t= -v [-i=input-file] [-h
-v] -i= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-o
on.
Specifies overwrite mode. Default value is on
-f
Displays a help message about the input file format.
-c
Architecture.
Specifies the item class name to create. Specify either Item or Architecture
-t
Specifies the default item type to create.
-v
Displays verbose information.
-i
Specifies the full path to an input file.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
overwrite, replaces any existing structures with the
The default mode, overwrite
information contained in the input file.
Input File
Format
The input file consists of lines of comments, directives, and items. Each item
and key line defines an item that the ps_upload utility creates. The comments
and directive lines only alter the input file parsing behavior. They have no
effect on the created items.
The structure hierarchy is determined by the level column (where the top level
is level zero). The textual indentation of the item ID in the example file is
only to make it more readable. Each time a level zero item is created, a new
structure is started. Therefore, many structures (including single items) can
be created from a single input file.
The top-level item in each structure is added to the user's Newstuff folder.
Note
Do not show more than one occurrence of the same expanded assembly or
you duplicate its contents.
Note
Substitutes
An entry in the substitutes column should consist of a delimiter-separated
list of item IDs, where each substitute has been individually defined as a
level 0 structure. The default column delimiter is a semicolon (;;).
The #SUB_DELIMITER directive tells the system that the next nonspace character
on the line is used as a delimiter. If there is no nonspace character after
the #DELIMITER directive, the delimiter is set to a blank space ('' '). The
substitute delimiter cannot be the same as the column delimiter.
Examples
The following figure illustrates the general file layout and shows the
arbitrary use of the #COL and #DELIMITER directives:
purge_baselined_item_revisions
Purges baseline revisions when the automatic purge process fails.
Syntax
-u=user-id -p=password | -pf=password-file
purge_baselined_item_revisions [-u=
-g=group]
-item_id=item_id
[-item_id=
| -key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]]
-status= release-status [-date=
-date=yyyy MM dd hh mm ss| now | today
today] [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-item_id
Specifies the appearance root item.
-key
Specifies the key of the appearance root item. Use the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
qsearch_process_queue
Updates or queries the spatial indexes used by the cacheless search mechanism.
You can also use this utility to modify or query the state of the update queue
process that updates these indexes.
Syntax
-u=user-id -p=password | -pf=password-file -g=group]
qsearch_process_queue [-u=
-item_id=item-id-pattern1,item-id-pattern2,item-id-pattern3,... | @filename]
[-item_id=
-list_queue | -list_all_queue
{[-list_queue -list_all_queue]} [-show_queue_oldest_date
-show_queue_oldest_date]
-show_queue_oldest_date
-process_queue]
[-process_queue -delay=N] [-repeat=
-process_queue_repeatedly [-delay=
-process_queue [-process_queue_repeatedly -repeat=M]]
-clear_queue]
[-clear_queue -force_queue_update Objects]
-clear_queue [-force_queue_update
-force_queue_substructure_update= Objects]
[-force_queue_substructure_update=
-force_queue_all_leaf_item_updates ] [-force_queue_all_possible_updates
[-force_queue_all_leaf_item_updates -force_queue_all_possible_updates ]
-force_queue_all_necessary_updates ] [-force_queue_all_inconsistent_updates
[-force_queue_all_necessary_updates -force_queue_all_inconsistent_updates
-tolerance=Percentage]] [-ask_global_search_box_delta
[-tolerance= -ask_global_search_box_delta] -list_volumes= Objects]
-ask_global_search_box_delta [-list_volumes=
-list_index_boxes= Objects] [-list_structure_index_boxes=
[-list_index_boxes= -list_structure_index_boxes= Objects]
-list_all_index_boxes]
[-list_all_index_boxes
-list_all_index_boxes
-clear_indexes]
[-clear_indexes -clear_structure_indexes= Objects] [-clear_all_indexes
-clear_indexes [-clear_structure_indexes= -clear_all_indexes]
-clear_all_indexes
-clear_queue_processed]
[-clear_queue_processed -clear_all_queue]
-clear_queue_processed [-clear_all_queue
-clear_all_queue
-check_indexes= Objects]
[-check_indexes=
-check_structure_indexes= Objects
[-check_structure_indexes=
-list_suggested_updates filename] | -force_queue_suggested_updates |
-list_suggested_updates[=
[-list_suggested_updates
-follow_only_check_failures] [-find_cycles
-follow_only_check_failures -find_cycles]
-find_cycles
-count_occurrences =Objects] [-count_substructure
[-count_occurrences -count_substructure =Objects]
-dump_substructure]
[-dump_substructure
-dump_substructure
-task=task-list] [-verbose
[-task= -verbose] -print_names]
-verbose [-print_names
-print_names [-h-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-item_id
Specifies a list of item ID patterns to process when you use product-scoped
searches. Entries must be separated with commas. You can also supply the item
ID patterns in a separate text file, with one item ID pattern per line. In this
case, use the file name instead of the list of item ID patterns, preceding it
with @. If you do not specify item IDs, all items in the database are processed.
-list_queue
Lists all unprocessed entries in the queue.
-list_all_queue
Lists all entries in the queue, including processed entries.
-show_queue_oldest_date
Shows the creation date of the oldest unprocessed entry in the queue.
-process_queue
Processes the unprocessed entries in the queue.
-process_queue_repeatedly
Processes the unprocessed entries in the queue repeatedly. Optionally, you can
wait N seconds between process runs (default delay is 5 seconds). You can also
specify a maximum of M times for the process to repeat (default is forever).
-delay
Specifies a delay of N seconds between process runs.
-repeat
Specifies a maximum of M times for the process to repeat (default is forever).
-clear_queue
Clears the unprocessed entries from the queue.
-force_queue_update
Adds an entry to the queue for the specified objects.
-force_queue_substructure_update
Adds a entry to the queue for the leaf items of the assembly beneath the
specified objects. This action updates the entire assembly.
-force_queue_all_leaf_item_updates
Adds an entry to the queue for all leaf items. This action updates all
assemblies.
-force_queue_all_possible_updates
Adds an entry to the queue for the primary of each TC_bounding_box relation.
-force_queue_all_necessary_updates
Adds an entry to the queue for the primary of each TC_bounding_box relation
that lacks an index.
-force_queue_all_inconsistent_updates
Adds an entry to the queue for the primary of each TC_bounding_box relation
with an apparently inconsistent index. You can optionally specify the
percentage inconsistency to ignore, overriding the default value of 10%.
-tolerance
Specifies the percentage of inconsistency to ignore.
-ask_global_search_box_delta
Calculates the current global search box delta.
-list_volumes
For each specified object, lists the total volume occupied by all its
contributing bounding-boxes and the total volume of all its index-boxes.
-list_index_boxes
Lists the index boxes for the specified objects.
-list_structure_index_boxes
Lists the index boxes for all possible configured structures for the given
objects.
-list_all_index_boxes
Lists the index boxes for all objects.
-clear_indexes
Removes the indexes from the specified objects.
-clear_structure_indexes
Removes the indexes for all possible configured structures from the specified
objects.
-clear_all_indexes
Removes the indexes from all objects.
-clear_queue_processed
Clears the processed entries from the queue.
-clear_all_queue
Clears all entries from the queue, that is, both processed and unprocessed
entries.
-check_indexes
Checks the indexes for the specified objects.
-check_structure_indexes
Checks the indexes for all possible configured structures for the specified
objects.
-find_cycles
Finds all cyclical structures.
-count_occurrences
Counts all occurrences in all structures of all items. Optionally, you can
just count all occurrences of specified objects.
-count_substructure
Counts the substructure of all root items. Optionally, you can just count the
substructure of specified objects.
-dump_substructure
Displays a list of item UIDs under the item ID specified by the -item_id
argument.
-task
Specifies a task list of multiple arguments. Omit the leading dashes and
separate entries with commas. For example:
-task=list_queue,process_queue
-verbose
Runs the utility in verbose mode to display the maximum amount of information.
Typically, nonverbose utility sessions only display error messages.
-print_names
Prints item IDs and names as well as UIDs.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
Where appropriate, objects may be specified as a list of UIDs or a list of
item ID patterns, as follows:
• A list of UIDs must be preceded by -uid= and entries separated with commas:
-uid=uid1,uid2,uid3,...
You can also supply the UIDs in a separate text file, with one UID per
line. In this case, use the file name instead of the list of UIDs,
preceding it with @:
-uid=@filename
You can also supply the item ID patterns in a separate text file, with one
item ID pattern per line. In this case, use the file name instead of the
list of item ID patterns, preceding it with @:
-item_id=@filename
Examples
The following example lists all unprocessed entries in the queue:
qsearch_process_queue -u=infodba -p=infodba -g=dba -list_queue
The following example adds an entry to the queue for each of the objects
listed in the c:\temp\objfile.txt file:
qsearch_process_queue -u=infodba -p=infodba -g=dba -force_queue_update
-uid=@c:\temp\objfile.txt
The following example checks the indexes for all objects that have an item
123:
ID prefixed with 123
qsearch_process_queue -u=infodba -p=infodba -g=dba -check_indexes -item_id=123*
The following example lists the unprocessed entries in the queue and then
processes them:
qsearch_process_queue -u=infodba -p=infodba -g=dba -task=list_queue,process_queue
Resolving
circular
references
Some assemblies may contain circular references (cycles). If cycles exist in an
assembly, you may encounter poor performance when creating indexes and running
searches. If so, use this utility with the find_cycles argument to identify
all such cycles. You should then remove the cycles manually before executing
other cacheless search utilities. You should also identify why these cycles
are created and establish a process to prevent the creation of more cycles.
You can run the utility with the find_cycles argument against a single item or
the entire database, as shown in the following examples.
Processing the entire database:
qsearch_process_queue -u=infodba -p=infodba -g=dba -find_cycles 2>
c:\temp\list_of_cycles.txt
Note
The utility output is written to standard error and you should redirect
it to a file. For example, specify 2< c:\temp\list_of_cycles.txt, as shown
in the first example.
update_bomchanges
Updates BOM change records corresponding to all existing change objects. Only
users with DBA permissions can run this utility.
The engineering change objects to be updated are selected based on the values
provided by the -c argument.
A log file containing the list of engineering changes and the corresponding
affected assemblies that have been successfully updated is created. The log
file can be provided using the -l option. If no log file is provided the
information is published to the standard output.
Syntax
-u=user-id -p=password | -pf=password-file -g=group]
[-u=
-c= 0|1|2 -e=change-id -key=change-key -l=log-file [-h
-c={0|1|2
0|1|2}-e= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-c
Determines the category of engineering changes for which the affected
assemblies must be updated.
0
Only updates released engineering change objects.
1
Only updates released and in process engineering change objects.
2
Updates all the engineering change objects in the database.
-e
Specifies the change ID, if any.
-key
Specifies the key of the change object whose revisions need to be updated.
-c, -e , or -key argument must be provided
Either the -c
The key represents the multifield key of the object. To find the key of an
object, use the get_key_string utility.
For more information, see the Business Modeler IDE Guide.
-l
Creates a log file containing the list of engineering changes and the
corresponding affected assemblies that have been successfully updated. If no
log file is provided, the information is published to the standard output.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
Log file contains the list of engineering changes and the affected assemblies
that have been update successfully.
Restrictions
None.
Examples
• The following example updates the BOM changes associated with the affected
assembly of all the released engineering changes in the database. It also
/tmp/. The log file
generates a log file named log.txt at the location /tmp/
contains the list of engineering changes and the affected assemblies that
update successfully:
$TC_BIN/update_bomchanges -u=infodba -p=infodba -g=dba
-c=0 -l=/tmp/log.txt
• The following example updates the BOM changes associated with the affected
assembly of all the engineering changes in the database. The information
pertaining to the list of engineering changes and the affected assemblies
that update successfully is published to the standard output:
$TC_BIN/update_bomchanges -u=infodba -p=infodba -g=dba -c=2
update_loggeddatetogmt
Description
Run this utility after you migrate Teamcenter from a version prior to 8.3 to
version 8.3 or later. This utility updates the values in the LoggedDate column
from the local time zone to the GMT time zone.
This utility does a bulk update for Oracle and SQL Server databases. DB2
database is updated record by record.
Note
Run this utility only once. If you run this utility multiple times, the
time zone correction is applied multiple times.
This utility may take a long time to run depending on your data size.
Syntax
-u=user-id {-p=
update_loggeddatetogmt [-u= -p=password | -pf=password-file} -g=group]
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument cannot be replaced with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
update_objecttype utility
Run this utility after you migrate Teamcenter from a version prior to 8.3 to
version 8.3 or later. This utility updates the ObjectType column with the
POM_object.
correct Teamcenter object type. The default object type is POM_object
Note
This utility may take a long time to run depending on your data size.
Running this utility is optional.
Syntax
-u=user-id {-p=
update_objecttype [-u= -p=password | -pf=password-file} -g=group]
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument cannot be replaced with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-h
Displays help for this utility.
update_project_bom
Allows you to update all items in a BOM structure within specified projects.
Syntax
-u=user-id -p=password | -pf=password-file -g=group]
update_project_bom [-u=
-f={add
-f= add | remove
[-f= -type= item | rev}] [-item=
remove}] [-type=
-type={ -item=item-id | -key=key-id]
-rev_id=revision-id]
[-rev_id=
-rev_rule=revision-rule] [-unit_no=
[-rev_rule= -unit_no=unit-number] [-date=
-date=date]
-end_item=end-item-id | -end_key= end-key-id] [-var_rule=
[-end_item= -var_rule=variant-rule]
-depth=depth-of-bom]
[-depth=
-level={
[-level= -projects=project-lists] [-h
-level= 1 | 2} ] [-projects= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-f
Specifies one of the following types of operation for this utility:
Note
add
Adds item objects to projects.
remove
Removes item objects from projects.
-type
Specifies one of the following types to be updated for each BOM line:
item
Updates each child item for the projects.
rev
Updates only child item revision objects to the projects.
Note
item.
If this argument is omitted, the default type is item
-item
Specifies the ID of the root item of the BOM to update. Use either the -item
argument or the -key argument.
-key
Specifies the key of the root item of the BOM to update. Use either the
-item argument or the -key argument.
To find the key of an object, use the get_key_string utility.
For more information, see the Business Modeler IDE Guide.
-rev_id
Specifies the ID of the root item revision. If omitted, the default is the
latest revision.
-rev_rule
Specifies the configuration rule to be applied to the item revision. If
omitted, the default is the Latest Working revision rule.
-unit_no
Specifies the unit number associated with the revision rule.
-date
Specifies the effectivity date associated with the revision rule. The date
should be specified in the following format:
yyyy MM dd hh mm ss
-end_item
Specifies the ID of the end item associated with the revision rule. Use with
the -item argument.
-end_key
Specifies the key of the end item associated with the revision rule. Use
with the -key argument.
To find the key of an object, use the get_key_string utility.
For more information, see the Business Modeler IDE Guide.
-var_rule
Specifies the variant rule to be applied to the BOM structure. If omitted,
no variant rule is applied.
-depth
Specifies to what depth the BOM is traversed. If omitted, the entire BOM
structure is traversed.
-level
Indicates the level of propagation. Specify either 1 or 2.
-projects
Lists the projects to which the BOM structure will be added or from which
the BOM structure will be removed.
When the -add option is specified, all items in the BOM structure are added
to these projects.
When the -remove option is specified, all items currently belonging to the
projects are removed from the projects. You can specify more than one project.
If there is more than one project in the list, each project name is separated
by a comma (,,).
-h
Displays help for this utility.
Restrictions
None.
Examples
• To display usage help for this utility, enter the following command on a
single line:
update_project_bom -h
• To traverse the BOM structure starting at the top-level item ABC001 with
item revision 001 by applying the revision rule Latest Released and variant
AlphaRelease, and find all the child revision items and add only these
rule AlphaRelease
CusProj2, enter the following
revision items to the projects CusProj1 and CusProj2
command on a single line:
update_project_bom -u=user -p=password -g=dba
-f=add -type=rev -item=ABC001 -rev_id=001 -rev_rule=”Latest Released”
-var_rule=”AlphaRelease” -projects=CusProj1,CusProj2
• To traverse the BOM structure in the top three levels with the top-level
ABC002, item revision 001
item ABC002 001, and revision rule Latest working
working, and
find all the child revision items in the top three levels and remove only
CusProj2, enter the
these revision items from the projects CusProj1 and CusProj2
following command on a single line:
update_project_bom -u=user -p=password -g=dba
-f=remove -type=item -item=ABC002 -rev_id=001
-rev_rule=”Latest Working” -projects=CusProj1,CusProj2 -depth=3
• To traverse the BOM structure with the top-level item ABC001 and perform:
o Level 1 propagation: locate all the child items in the BOM based on
001, revision rule Latest working
item revision 001 working, and include these
CusProj1, CusProj2
items into the CusProj1 CusProj2, and CusProj3 projects.
• To traverse the BOM structure with the top-level item ABC001 and perform:
o Level 1 propagation: locate all the child items in the BOM based on
001, revision rule Latest working
item revision 001 working, and include these
CusProj1, CusProj2
items into the CusProj1 CusProj2, and CusProj3 projects.
CusProj1, CusProj2
of these level 2 objects into the CusProj1 CusProj2, and CusProj3
projects.
• To traverse the BOM structure with the top-level item ABC001 and perform:
o 001,
Level 1 propagation: traverse the BOM based on item revision 001
working, and variant rule AlphaRelease
revision rule Latest working AlphaRelease, find all
the child revision items and include only these revision items into the
CusProj1, CusProj2
CusProj1 CusProj2, and CusProj3 projects.
upgrade_rev_rules
Upgrades revision rules so that they can safely use the modified revision rule
implementation. This is run automatically as part of the upgrade script, but
may need to be run again if any locked revision rules are encountered (or
if any other error occurs).
Syntax
-u=user-id -p=password | -pf=password-file
upgrade_rev_rules [-u=
-g=group][-v
-v][-h
-h]
-v -h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-v
Verbose mode. Shows additional messages.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
None.
upgrade_variants
Use the upgrade_variants utility to upgrade an existing Teamcenter system to
the new variant model. It allows you to:
• Migrate the variants for one program (product item) at a time or migrate
the entire database.
Syntax
-u=user-id -p=password | -pf=password-file -g=group]
upgrade_variants [-u=
-product_code= product code -ves_list_file= variant expression uid list file
-top_arch_id= top level architecture item -full_database= yes | no
-lou_holder_id= item id of lou holder -file_path= path name
-dry_run= yes | no [-long
-long -report_delete_failures= yes | no
-long]
-force -delete_unreferenced_ves_only= yes | no -delete_tree= yes | no
-force]
[-force
-bulk_delete= yes | no [-parallel
-parallel] -h]
-parallel [-h
-h
Arguments
Note
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the database. If you do not supply these
arguments, the utility attempts to join an existing SSO session. If no
session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-product_code
Specifies the product code from the product definition form.
-ves_list_file
Specifies a text file containing the UIDs of the variant expressions to migrate.
-top_arch_id
Specifies the item ID of the top level assembly breakdown structure. The named
variant expressions for the architecture breakdown are migrated.
-full_database
Specify yes to migrate all the variant conditions and NVEs in the entire
no.
database or no to migrate selected data. The default is no
-lou_holder_id
Specifies the item ID of the LOU holder item. The variant conditions for the
LOUs under this LOU holder are migrated.
-file_path
Specifies the path where the migration report should be stored. If no path
is specified, the report is stored in the path identified in the TC_TEMP_DIR
environment variable.
-dry_run
yes, the utility performs a dry run. A dry run does not
If specified as yes
migrate the variant expressions but generate a migration report. You must
specifically set this argument to no if you do not want to perform a dry run.
-long
Optionally used when you perform a dry run. If specified, the utility outputs
UIDs in addition to the variant expression text and named variant expression
names.
-report_delete_failures
yes, reports failures encountered while deleting the variant
If specified as yes
no.
expressions that are not successfully migrated. The default value is no
-force
Optionally forces conversion of all variant expressions to the new variant
model.
-delete_unreferenced_ves_only
Optionally deletes unreferenced variant expressions from the database. The
no.
default value is no
-delete_tree
no.
Optionally skips deletion of payload trees. The default value is no
-bulk_delete
Optionally performs a bulk deletion of all unreferenced variant expressions.
no.
The default value is no
-parallel
Optionally specifies a parallel variant model upgrade session when a session
is already in progress.
-h
Displays help for this utility.
Environment
This utility should be run in a shell where the Teamcenter environment is
set up.
Files
A report file is generated in the specified location.
Restrictions
None.
Examples
1. To migrate only the assembly structure:
upgrade_variants -u=infodba -p=infodba -g=dba -product_code=PLM00001
-file_path=c:\report.txt -dry_run=no
Effectivity mode
effupgrade
Converts effectivity data created in iMAN versions prior to 7.0 into the
effectivity model used in iMAN version 7.0 and later, Teamcenter Engineering
and Teamcenter. The new effectivity model allows end item qualification and
discontinuous ranges. The upgrade process goes through each unconverted
release status and creates a 7.0 effectivity qualified against a null end item
from the start date, end date or unit values on the release status.
Syntax
-u=user-id -p=password | -pf=password-file -g=group]
effupgrade [-u=
-s]
[-s -i=interval] [-v
-s | [-i= -v [-e
-e]]
-e -h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-s
Specifies a single run. Upgrade runs once and ignores locked statuses.
-i
Specifies multiple runs and an interval between reruns in minutes. The default
interval is 60 minutes.
-v
Verbose mode. Shows additional messages.
-e
Displays effectivities of release statuses to be converted. Must be used
with the -v argument.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• For cases where an upgrade is not going to be disruptive (less than 1000
effectivities), make sure all users are logged off, then upgrade with the
-s argument. For example:
effupgrade -u=infodba -p=password -g=dba -s -v
• For extensive upgrades that are likely to take a long time (many thousands
of effectivities), especially if statuses are likely to be locked (some
users always logged on), run repetitively until complete.
effupgrade -u=infodba -p=password -g=dba
batchmode_clearance_analysis
Performs clearance analysis on a product structure and stores all issue and
results data in the clearance database. This utility can be run as a CRON job
and can be run at different levels using the run level switch.
Syntax
-u=user-id -p=password |
TC_ROOT/clearanceDB/scripts/ [-u=
-pf=password-file -g=group] -bookmark [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-bookmark
Generates a bookmark file of the product.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities
and in the setup document provided in the TC_ROOT/clearanceDB/scripts
directory.
Files
None.
Examples
To perform clearance analysis on a product structure and store the results
data in the clearance database, enter the following command on a single line:
batchmode_clearance_analysis.pl
Appearance Configuration
apn_medic
Checks for redundant appearance path nodes (APNs).
Syntax
-u=user-id {-p=
apn_medic [-u= -p=password | -pf=password-file} -g=group]
-item=item-id | [-key=
-all {-item= -key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…
[,keyAttrN=keyValN]]}
-apn=APN-uid -repair -force=option -output= output-file
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-all
Traverses the APN structure to find all redundant APNs. If not specified, the
utility only checks if there are any redundant root APNs.
-item
Starts the utility using the item as the root of the structure. If not
specified, the utility searches the entire database.
-key
Specifies the key of the item to track. Use the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
-apn
Specifies the UID of an APN. Once used, the -item argument is ignored. If the
-all argument is also specified, the utility gets the root and purges the
whole APN structure where the specific APN resides. If the -all argument is
not specified, only the APN is purged.
Note
-repair
Picks one APN among the duplicate APNs, copies GRM relations to the selected APN
from the non-surviving nodes, and purges the children and the redundant nodes.
-force
Forces deletion of duplicate APNs. This argument works in conjunction with
the -repair argument.
-output
Specifies the output file containing the information for analyze. If not
specified, the default apn_medic_output.txt file is used. The following
information is placed in the output file: the UID of the redundant APN,
the associated item, the parent item, the occurrence thread, the appearance
path root, the number of children, the number of relations of the node and
the associated absolute occurrence, number of app refs, and the type of the
absolute occurrence data.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
appr_update_manager
Launches the Appearance Update Manager. Sets up the Teamcenter runtime
appr_update_supervisor)
environment and launches the Update Manager Supervisor (appr_update_supervisor
appr_update_supervisor
utility. Also automatically relaunches the supervisor when required.
Syntax
appr_update_manager
Arguments
None.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Restrictions
None.
Examples
None.
appr_update_supervisor
Runs as a background process, invoking Teamcenter processes to perform
appearance updates, as required.
Note
Because the supervisor is not a Teamcenter process, it does not require a user
name or password. However, the processes it spawns do require user name and
password; therefore, you should run the program as a privileged user and allow
the update processes to log on automatically. If autologin is not supported
at your site, you can use the alternative log on mechanism documented in the
$TC_ROOT/data/.appr_update_env.default file.
Syntax
appr_update_supervisor
Arguments
None.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
• $TC_ROOT/bin/.appr_update_env
Configuration file for the Appearance Update Manager.
• $TC_ROOT/bin/.appr_update_env.default
Example configuration file.
• $TC_ROOT/bin/appr_update_supervisor*.log
Supervisor log file.
Restrictions
None.
Examples
None.
appr_update_console
Enables users to query the status of the Update Manager and allows
administrators to control the Update Manager. Starting the console with no
query or control arguments on the command line starts a simple menu system.
Syntax
-u=user-id -p=password | -pf=password-file -g=group]
appr_update_console [-u=
-host=host]
[-host=
-port=port]
[-port=
-menu]
[-menu
-menu
-query]
[-query
-query
-query=update-UID]
[-query=
-dump_primary]
[-dump_primary
-dump_primary
-dump_secondary]
[-dump_secondary
-dump_secondary
-show_blocked]
[-show_blocked
-show_blocked
-hide_blocked]
[-hide_blocked
-hide_blocked
-log_status]
[-log_status
-log_status
-log_file]
[-log_file
-log_file
-log_level=n]
[-log_level=
-clear_log]
[-clear_log
-clear_log
-shutdown]
[-shutdown
-shutdown
-shutdown_now]
[-shutdown_now
-shutdown_now
-restart]
[-restart
-restart
-restart_now]
[-restart_now
-restart_now
-prod_queue]
[-prod_queue
-prod_queue
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-host
Connects to the supervisor on the specified host. Overrides the setting in
the .appr_update_config file.
-port
Connects to the supervisor through the specified communications port.
Overrides the setting in the .appr_update_config file.
-menu
Forces the console into interactive mode.
-query
Queries the current Update Manager status.
-query=update UID
Queries the status of a specific update package.
-dump_primary
Prints the primary queue.
-dump_secondary
Prints the secondary queue.
-show_blocked
Shows blocked packages in subsequent queue dumps.
-hide_blocked
Hides blocked packages in subsequent queue dumps.
-log_status
Requests that the Update Manager write a complete status report to the log file.
-log_file
Queries the name of the Update Manager log file.
-log_level
Sets the supervisor logging level. This command is available only to system
administrators.
-clear_log
Requests that the Update Manager clear the log file. This command is available
only to system administrators.
-shutdown
Requests that the Update Manager shut down as soon as the current task is
finished.
-shutdown_now
Requests that the Update Manager shut down immediately. This command is
available only to system administrators.
-restart
Requests that the Update Manager restart immediately. This command is
available only to system administrators.
-restart_now
Restarts update manager immediately. This command is available only to system
administrators.
-prod_queue
Sends the supervisor a dummy update request.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter along with the following files:
• $TC_ROOT/bin/.appr_update_env
Configuration file for the Appearance Update Manager.
• $TC_ROOT/ bin/.appr_update_env.default
Sample configuration file.
Restrictions
None.
Examples
1. To start the Update Manager console menu system, enter the following
command at the prompt:
appr_update_console
3. To query the status and the log file name of the Update Manager on the
my_server.mycompany.com host, enter the following command at the prompt:
appr_update_console -host=my_server.my_company.com -query -log_file
appearance_updater
Processes appearance updates as part of the Appearance Update Manager. This
program should be invoked by the appr_update_supervisor program.
Syntax
-u=user-id -p=password | -pf=password-file -g=group]
appearance_updater [-u=
-quiet]
[-quiet
-quiet
-nolog]
[-nolog
-nolog
-supervisor=host,port1,port2]
[-supervisor=
-task=cmd [,cmd...]]
[-task=
-show_uids]
[-show_uids
-show_uids
-show_blocked]
[-show_blocked
-show_blocked
-since=date -item_id= item-id] ]
[-since=
-at=date]
[-at=
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-login
$TC_DATA,
Forces the program to search for the .appr_update_info file in the $TC_DATA
$TC_ROOT/data, or $HOME directory. The .appr_update_info file must contain the
$TC_ROOT/data
-u, -p
-u -p, and -g flags (on separate lines) that are used to log on. This is
used primarily by the Update Manager Supervisor.
-supervisor
Identifies the Update Manger Supervisor that supplies tasks for the update
process. This is used primarily by the Update Manager Supervisor.
-task
Manually identifies a task, or list of tasks, to be performed by the update
process. The task list is a comma-separated list (no spaces) containing one or
more of the following tasks:
query_update Queries the POM UID of the current appearance
update.
query_primary_size Queries the size of the primary appearance
update queue.
query_sets Queries the number of appearance sets,
number of processed sets, and number of
sets yet to be processed (excluding those
currently being processed) for the update.
query_packages Queries the number of update packages in the
current update process.
query_unprocessed_packages Queries the number of update packages in
the current update that have not yet been
processed.
process_primary Requests the processing of the next update
in the primary queue. This fails if there
is already an update in process.
process_secondary Requests the processing of a single
appearance set for the current update. This
fails if there are no appearance sets that
require processing.
process_all_secondary Requests that the program loops until all
appearance sets are processed for the
current update.
finish_primary Completes the final processing of an update
once all secondary sets have been processed.
dump_primary Dumps information about the primary queue
stdout).
to standard output (stdout
stdout
dump_secondary Dumps information about the secondary queue
stdout).
to standard output (stdout
stdout
-quiet
stdout).
Suppresses the output of diagnostics to standard output (stdout
stdout
-nolog
Suppresses diagnostics to the log file.
-show_uids
Includes tag/UID information.
-show_blocked
Includes information about blocked, as well as unblocked packages.
-since= yyyy mm dd hh mm ss
Includes information about all packages, processed or unprocessed, since the
specified date.
-item_id
Shows only those packages relevant to the release of any revision of the
specified item. This argument is only supported for use when the -since
argument is used.
-at= yyyy mm dd hh mm ss
Shows the package that was running on the specified date. This is assumed
to be the earliest package with order-by and run dates that straddle the
specified date.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• Enter the following command at the prompt to query the size of an appearance
update queue:
appearance_updater -task=query_primary_size
• Enter the following command at the prompt to query the UID and state of
the current update:
appearance_updater -task=query_update,query_set
• Enter the following command at the prompt to process the next complete
update in the queue:
appearance_update -task=process_primary,process_all,
process_al_secondary,finish_primary
appr_working_scheduler
Provides an update scheduler for working appearances (working appearances is a
collective name for all appearance sets that have a working entry in their
context revision rule).
This utility places the ApprUpdWorkingPkg appearance working package on the
primary update queue at every user-specified time interval. The ensuing
execution of the working appearance package by the appearance supervisor
ensures that the appearance working cache is updated. If an existing working
update package is already in the updater queue in an unprocessed or processing
state, a new package is not created. The scheduler waits until the end of
the next elapsed interval before it attempts to put another package on the
updater queue.
Syntax
-u=user-id -p=password | -pf=password-file -g=group]
appr_working_scheduler [-u=
-minutes= minutes-time-interval -hours=hour-time-interval [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-minutes
Specifies time interval, in minutes, at which the scheduler creates a working
appearance update package. This value is added to the time interval specified
by the -hours argument.
-hours
Specifies time interval, in hours, at which the scheduler creates a working
appearance update package. This value is added to the time interval specified
by the -minutes argument.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities
and the Appearance Configuration Guide.
Files
As specified in Log files produced by Teamcenter.
Restrictions
• Appearances environment must be setup prior to using this utility.
For more information, see the Appearance Configuration Guide.
create_appearances
Creates appearances representing an initial product structure in a particular
context. It also creates an appearance root, if required.
Syntax
-u=user-id -p=password | -pf=password-file -g=group]
create_appearances [-u=
-item_id=item-id | [-key=
{[-item_id= -key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…
[,keyAttrN=keyValN]]} -config_rule= config-rule -view_type= view-type
-in_date=in-date] [-out_date=
[-in_date= -out_date=out-date]
-in_unit_no=in-unit-no] [-out_unit_no=
[-in_unit_no= -out_unit_no=out-unit-no] [-h-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-item_id
Specifies the item to track.
-key
Specifies the key of the item to track. Use the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
fix_appearances
Rolls back and deletes appearances to the last point at which the appearance
root was marked as consistent, that is, the corruption_status attribute was
0. It also requeues the relevant update packages. When the packages are
reprocessed, Teamcenter creates a new set of appearances that more accurately
represent the actual structure. This is effectively a partial rollback and
does not force recreation of the complete appearance set.
Note
An error displays if the input values result in more then one item being
found in the database.
Syntax
-u=user-id -p=password | -pf=password-file -g=group]
fix_appearances [-u=
-item_id=item-id]
[-item_id=
-key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]]
[-key=
-config_rule=config-rule] [-view_type=
[-config_rule= -view_type=view-type]
-ok_date=ok-date] -force [-v
[-ok_date= -v] -h]
-v [-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
item_id, config_rule
You use the item_id config_rule, and view_type arguments as filters to
determine which appearance roots to fix.
-ok_date
Assert the date when there was no corruption thereby overriding the appearance
ok_date. The date format is yyyy MM dd hh mm ss. This argument
root's stored ok_date
is optional.
By default, the fix_appearances utility uses the date of the ok_date attribute
of the appearance root, that is, the date at which the last successful
automatic validation occurred. If the validation never occurred, the value of
ok_date is the same as the appearance root's creation date.
However, you can specify a date for roll back with the ok_date argument. This
date can be earlier than the last ok-date on the appearance root. If you run
the find_appearances utility and set -verbose and -item_id= ID arguments, the
utility dumps the last ok-date of the appearance root. You can then use this
date and run the fix_appearances utility with the ok-date value immediately
before it.
-force
Force a fix even if appearance root determines it is not corrupt. Use this
argument if there are differences between the automatic and the manual
checking processes. An error message informs the user whether to use the
-force argument.
-v
Specifies verbose mode.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
The following example shows an invocation of the fix_appearances utility:
$TC_BIN/fix_appearances -force -ok_date=2002 -item_id=0150_app_01
-view=view -config_rule=0150_app_context -u=infodba -p=infodba"
Found 1 AppearanceRoot
AppearanceRoot[0] = 00003baf = hdHVNDf_AAgcRA (Item ID: 0150_app_01 (View: view)
Revision Rule: 0150_app_context (without spatial data, not for pre-release,
active, never fixed, never checked, last updated 21-Feb-2007 09:26:31,
with 6 appearances)), ok at 2007-02-21 09:24:00
At 21-Feb-2007 09:27:25, re-queued cloned primary package:
(00003f5e = h5LVNHQhAAgcRA) ApprUpdChangedRevsPkg: queued on
21-Feb-2007 06:35:58, (no run date), unprocessed (0),
Release Status: (00003cd7 = x1BV96Y4AAgcRA) Production on 21-Feb-2007
06:35:58 by possum (possum) 0 Effectivities
Cloned-for AppearanceRoot: (00003baf = hdHVNDf_AAgcRA)
Item ID: 0150_app_01 (View: view)
Revision Rule: 0150_app_context (without spatial data, not for pre-release,
active, never fixed, never checked, never updated, with 0 appearances)
0 secondary package(s)
0 filtered-by AppearanceRoot(s)
1 changed ItemRevision(s):
(00003cd9 = h9JV96Y4AAgcRA) 0170_01/B-Car owned by possum (possum)
At 21-Feb-2007 09:27:25, re-queued cloned primary package:
(00003f61 = h5PVNHQhAAgcRA) ApprUpdChangedRevsPkg: queued on
21-Feb-2007 06:36:29, (no run date), unprocessed (0),
Release Status: (00003cda = ByKV96Y4AAgcRA) Production on 21-Feb-2007
06:36:29 by possum (possum) 0 Effectivities
Cloned-for AppearanceRoot: (00003baf = hdHVNDf_AAgcRA) Item ID: 0150_app_01
(View: view)
Revision Rule: 0150_app_context (without spatial data, not for pre-release,
active, never fixed, never checked, never updated, with 0 appearances)
0 secondary package(s)
0 filtered-by AppearanceRoot(s)
1 changed ItemRevision(s):
(00003cdb = BWMV96Y4AAgcRA) 0170_02/B-Axle owned by possum (possum)
At 21-Feb-2007 09:27:25, re-queued cloned primary package:
(00003f64 = h9DVNHQhAAgcRA) ApprUpdChangedRevsPkg: queued on
21-Feb-2007 06:37:31, no run date), unprocessed (0),
Release Status: (00003cdd = xxGV96IqAAgcRA) Production on 21-Feb-2007
06:37:31 by possum (possum) 0 Effectivities
Cloned-for AppearanceRoot: (00003baf = hdHVNDf_AAgcRA) Item ID: 0150_app_01
(View: view)
Revision Rule: 0150_app_context (without spatial data, not for pre-release,
active, never fixed, never checked, never updated, with 0 appearances)
0 secondary package(s)
0 filtered-by AppearanceRoot(s)
3 changed ItemRevision(s):
(00003cde = hxMV96IqAAgcRA) 0180_01/B-Car owned by possum (possum)
(00003cdf = htBV96IqAAgcRA) 0180_02/A-Axle owned by possum (possum)
(00003ce0 = hxDV96IqAAgcRA) 0180_03/A-Wheel owned by possum (possum)
At 21-Feb-2007 09:27:25, re-queued cloned primary package:
(00003f67 = h9HVNHQhAAgcRA) ApprUpdChangedRevsPkg: queued on
21-Feb-2007 06:39:47, (no run date), unprocessed (0),
Release Status: (00003ce3 = xxNV964zAAgcRA) Manufacture on 21-Feb-2007
06:39:47 by possum (possum) 0 Effectivities
Cloned-for AppearanceRoot: (00003baf = hdHVNDf_AAgcRA) Item ID: 0150_app_01
(View: view)
Revision Rule: 0150_app_context (without spatial data, not for pre-release,
active, never fixed, never checked, never updated, with 0 appearances)
0 secondary package(s)
0 filtered-by AppearanceRoot(s)
3 changed ItemRevision(s):
update_apprpathroot
Creates or updates the appearance path root, or removes the links between
appearance path nodes and appearances.
An appearance path maps an occurrence to the corresponding BOM line. It is
unique to the context of a specific BOM; different BOMs cannot contain the
same appearance paths. An appearance path is also called an appearance path
node (APN) or an occurrence path.
Syntax
-u=user-id {-p=
update_apprpathroot [-u= -p=password | -pf=password-file} -g=group]
[-item=item-id |
-item= -key=key-id ]
-task=action
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-item
Specifies the item to be used as the path root.
-key
Specifies the key of the item to be used as the path root. You can use the
-key argument instead of the -item argument.
Use the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
remove
Removes the links between appearance path nodes and appearances.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
smartuibldr_configure
Imports, exports, and updates the Smart Codes configuration text file to and
from the Teamcenter Rapid Start database.
Syntax
smartuibldr_configure -imp=filename [-u=
-u=user-id {-p=
-p=password |
-pf=password-file} -g=group] [-j
-j]
-j [-h-h]
-h
smartuibldr_configure -exp=filename [-u=
-u=user-id {-p=
-p=password |
-pf=password-file} -g=group] [-j
-j]
-j [-h-h]
-h
Note
You can only export the file after it has already been imported.
Arguments
-imp
Specifies the name of the text file to import.
-exp
Specifies the name of the text file to export.
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-id value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-id
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
4gd_populate_cd utility
Generates a collaborative design from an existing product or assembly
structure. The collaborative design has the following characteristics:
• One or more reuse design elements with names derived from the names of the
items from which the reuse design elements are realized.
Note
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-id value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-id
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-i
Specifies the item ID of the product or assembly to realize.
-rev
Specifies the revision of the specified item.
-rule
Specifies the name of the revision rule to configure the source assembly. If
the name of the rule contains spaces, you must enclose it in quotation mark,
that is, “rev-rule-name”.
-norelease
If specified, assumes a release status is assigned to all source items and
does not assign a release status to realized objects.
-root_partition
If specified, a partition is created for the top node of the assembly.
Note
-top
If specified, the entire assembly is realized as a single reuse design element,
rather than as individual leaves. Also, no partitions are created.
-partition_names
Specifies how partitions are named, as follows:
assy
If specified, the partition is given the same name as the corresponding BOM
line in the source assembly.
auto
Partition1,
If specified, the partitions are automatically named Partition1
Partition2, and so on, in the order they are encountered.
Partition2
name
If specified, the partition is named according to the source item revision
and the revision ID.
desc
If specified, the partition is named according to the description of the
source item revision.
uid
If specified, the partitions are named using the assembly option with
the session UID appended.
manage_effectivity_options
Allows you to manage 4GD effectivity options from a command line.
Syntax
-u=user-id {-p=
manage_effectivity_options [-u= -p=password |
-pf=password-file} -g=group]
-contextItemId= ItemID | -contextItemKey= Key -contextRevision= revisionID
-effOpt= option-name-string
-effValues=valid-values]
[-effValues=
-owningItemId= ItemID | -owningItemKey= Key
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-contextItemId
Specifies the item ID to which to attach a new option. This is typically the
item ID of the product for which the effectivity option should be added or
modified. The effectivity option may be an effectivity stream group such
as Engineering Intent or Model Year.
-contextItemKey
Specifies keys and values to pass if the item ID and revision ID are
insufficient to uniquely identify the context item revision. You can specify
contextItemKey, not both.
contextItemId or contextItemKey
-contextRevision
Specifies the item revision for which a new effectivity option should be
attached or modified. The item revision represents the product namespace in
which the option will be available.
-effOpt
Identifies the effectivity option to create or modify. This option usually
represents an effectivity stream grouping such as Engineering Intent or Model
Year.
-effValues
Specifies a list of valid values for the effectivity option. This is an
absolute list and all valid values must be passed. Teamcenter treats the
absence of valid values when you update existing effectivity options as a
request to remove those values from the context revision. Valid values must
be given in the context of the context item revision. You can attach the
modified item revision to multiple models for which effectivity streams with
these valid values are needed.
-owningItemId
Specifies the item that defines the effectivity option to modify. If specified,
the effectivity option defined on the owning item is reused on the product
item. It is restricted to the set of specified values if -effValues is
populated with a list of valid values.
-owningItemKey
Specifies keys and values to pass if the owning item ID is insufficient
to uniquely identify the owning item. You can specify owningItemId or
owningItemKey, not both.
owningItemKey
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
ptn0_persist_dynamicMembers
Traverses the complete partition breakdown of a collaborative design, executes
every partition recipe, and creates static membership objects in the database.
Traversal of a large product may take a significant time and Siemens PLM
Software recommends you schedule the utility to execute periodically as a
cron job. Execute it at a frequency that ensures the saved state of dynamic
members is sufficiently up-to-date to produce reliable results from the
wherePartitioned service (this service uses static membership objects to
identify owning partitions for design elements). When you run this utility, it
deletes membership objects it previously created and creates new membership
objects, according to the latest recipes on the partitions.
Syntax
-u=user-id {-p=
ptn0_persist_dynamicMembers [-u= -p=password | -pf=password-file}
-g=group] -m=model_id -s=partition scheme type name [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-id value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-id
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-m
Specifies the identifier of the collaborative design (model) to traverse.
-s
Specifies the type name of the partition scheme, for example,
Ptn0SchemeFunctional, Ptn0SchemePhysical
Ptn0SchemeFunctional Ptn0SchemePhysical, or Ptn0SchemeSpatial
Ptn0SchemeSpatial.
-h
Displays help for this utility.
Restrictions
infodba.
This utility must be run by a user with DBA permissions, for example, infodba
Examples
ptn0_persist_dynamicMembers -u=adminjones -p=passjones -g=dba -m=new_ship_design
-s=Ptn0SchemeFunctional
Ptn0_set_is_partition_owned_true
Sets the ptn0is_partition_owned property on partition memberships, if you are
upgrading to Teamcenter 10.1 or later from an earlier version. This property
must be set if you want to export or import partition members using TC XML.
Syntax
-u=user-id {-p=
Ptn0_set_is_partition_owned_true [-u= -p=password |
-pf=password-file} -g=group] [-h-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
infodba.
This utility must be run by a user with DBA permissions, for example, infodba
purge_historical_revisions
Searches the database for historical revisions of any revisable class that
are no longer needed. It purges all historical revisions it finds, except
for the following:
• All private and latest public revisions.
• All revisions that were updated more recently than the interval specified
in the POM_PURGE_AGE_LIMIT environment variable.
Note
The utility exits when no candidates for purging remain or if the specified
timeout period expires.
You can run the utility periodically using the Dispatcher, for example,
overnight or other times when system activity is low. If you do this, ensure
you set the value of the timeout argument to less than the repeat interval
of the periodic runs.
Revisions are purged in batches to reduce impact to users of the system.
Syntax
-u=user-id {-p=
purge_historical_revisions [-u= -p=password | -pf=password-file}
-g=group] -timeout= timeout_seconds [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-timeout
Specifies the maximum period that the utility runs, in seconds. When the
timeout period expires, the utility exits.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
infodba.
This utility must be run by a user with DBA permissions, for example, infodba
This restriction applies whether you run it manually or periodically using
Dispatcher.
Examples
purge_historical_revisions -timeout=3600 -u=adminjones -p=passjones -g=dba
validate_revrule_effectivity
Validates the effectivity criteria on one or more specified revision rules,
generates validation records, and associates them with the revision rules.
Optionally, you can create a text file containing the names of revision rules
to validate.
Validation may take a significant time, depending on the number of constraints
and default rules defined in the system. If you have a large number of
constraints and rules, consider running the utility during off-peak hours.
Syntax
-u=user-id {-p=
validate_revrule_effectivity [-u= -p=password |
-pf=password-file} -g=group]
{-rule_name= rule-name1 [-rule_name=
-rule_name=rule-name2] | -rev_rule_names_file= file-name}
substitute_dep_vars= 0 | 1+] [-apply_constraints=
-apply_constraints= 0 | 1+] [-apply
-apply default= 0 | 1+]
-model_id=model-id | [-product_name=
{-model_id= -product_name= product-name
-product_namespace= product-namespace]} [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-rule_name
Specifies the name of the revision rule to validate. If you want to validate
more than one revision rule, use this argument once for each revision rule.
This argument is optional if you use the -rev_rules_file_name argument, but
takes precedence if both arguments are entered.
-rev_rules_file_name
Specifies the name and full path of a text file containing the names of
revision rules to validate. The file must contain the name of one revision rule
on each line. This argument is optional if you use the -rule_name argument.
-substitute_dep_vars
Defines if and how the configurator substitutes dependent variables (for
PlantVacationShutdown) in the effectivity criteria on the revision
example, PlantVacationShutdown
rules.
Note
0
Dependent variables are not substituted.
1
Dependent variables are substituted and all modifiers are off. Forward and
reverse substitutions are applied as follows:
• Forward substitutions
Dependent variable substitution are defined by:
o A dependent variable, for example, D.
When these definitions have been made, the system can accept effectivity
conditions such as M = D, M != D, M > D, and M <= D.
For example:
o Vacation depends on Date.
• Reverse substitutions
Date-dependent conditions such as PlantVacationShutdown are derived
from date conditions. In the following example of a dependent variable
substitution:
o Vacation depends on Date
o Date determines the state of the variable Vacation
o Vacation := Jul-1 <= Date < Aug-1
A reverse substitution dynamically complements criteria containing
statements about Date with statements about Vacation. For example, you
can add a Vacation Date criterion to criteria like Date>=Sep-1”. (You
can control the detailed behavior of this substitution with modifiers).
This enables users to author effectivity conditions in May that respond
to a Vacation variable whose state is dynamically set at the time a
configuration filter is applied. This may be set later than you author
the effectivity condition. If the definition of Vacation changes in
June, effectivity conditions that were authored in May still evaluate
correctly.
Reverse substitutions are defined from a master to a dependent. Users
who provide solve criteria in terms of the master correctly evaluate
effectivity statements that were made in terms of the dependent. In
the previous example, reverse substitution ensures that date-dependent
criteria such as Vacation are derived from the date ranges specified in
the solve criteria.
3
Forward substitution is suppressed, if modifier 2 is on.
5
Reverse substitution is suppressed, if modifier 4 is on.
9
Reverse substitution uses a set-based substitution mode. For example
consider the following definition of a dependent variable substitution.
• Vacation depends on Date.
• Date determines the state of the variable Vacation
• Vacation := Jul-1 <= Date < Aug-1
A set-based reverse substitution complements solve criteria of Jul-1 <=
Date <= Dec-31 with Vacation <= Date. Equality is given because the
substituent (Jul-1 <= Date < Aug-1) is a subset of the criteria, while
precedency is given because the criteria also contain dates that compare
greater than the substituent.
If modifier 8 is off, the system uses the default reverse substitution
mode, which is vertex based. This mode would complement solve criteria
Jul-1 <= Date <= Dec-31 with Vacation < Date | Vacation = Date | Vacation
> Date. It does this because the criteria contain dates that compare to
at least one vertex of the substituent (Jul-1 <= Date < Aug-1) with each
comparison operator ("<", "=", ">").
17
Reverse substitution uses universal quantification. If modifier 16 is
off, the system uses the default of existential quantification. While
existential quantification searches for at least one match, universal
quantification attempts to prove the absence of a violation. Both modes
should produce the same results, though the required effort could be
substantially different.
Note
The following values are not permitted and may give incorrect results:
any even number, 7, 13, 21, and 29.
-apply_constraints
Specifies whether the system applies constraints.
0
The system does not apply constraints.
1
The system applies constraints.
-apply_defaults
Specifies whether the system applies defaults.
0
The system does not apply defaults.
1
The system applies defaults.
-model_id
This is an optional argument and is specified only if you connect to an external
configurator. Specifies the identifier of the 4GD model object in the context
of which the revision rules should be validated. CPD model objects define the
appropriate external configurator using the EffectivityInModel object.
-product_name
Specifies the name of the product, for example, the item ID. Teamcenter uses
this value in conjunction with the -product_namespace argument to resolve
any ambiguities in effectivity option value names. If you do not specify a
value, Teamcenter deduces the product name from the EffectivityInModel object
associated with the model.
-product_namespace
Specifies the namespace of the product in which the product name has unique
semantics, for example, the item revision ID, model year, and product type.
Teamcenter uses this value in conjunction with the -product_name argument
to resolve any ambiguities in effectivity option value names. If you do
not specify a value, Teamcenter deduces the product namespace from the
EffectivityInModel object associated with the model.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
Consider the following two products that are configured with effectivity:
These validation results are persisted in records that are attached to the
revision rule. If a client queries the revision rule effectivity criteria in
the context of product P1 or P2, the server response includes the corresponding
validation records. This allows sites to run this utility to perform
potentially CPU intensive criteria validation once for each revision rule
during off-peak hours, while permitting the system to deliver an acceptable
validation service to hundreds of users during working hours.
There are two limitations to this practice:
Also, when you validate the effectivity criteria of a revision rule, the
criteria are sent to a configurator service for validation. These criteria may
be sent to external or remote configurator services in a future version of
Teamcenter (this capability is not supported in the current version). In this
case, the construction of the validation records is subject to any limitations
of the external or remote configurator service.
Examples
• This example validates a revision rule called My Latest Released in the
ship123. It does not substitute dependent
context of a model whose ID is ship123
variables, and does not apply constraints or default rules. It creates a
validation record and associates it with the revision rule.
validate_revrule_effectivity -u=infodba -p=password -g=dba
-rule_name=My Latest Released -model_id=ship123
cleanup_userinbox
Consolidates two or more My Worklist inboxes of a user into a single inbox,
preserving the resource pool subscriptions and surrogate lists of each. If two
inboxes have the same surrogate, it is indeterminate which effective start
and end dates are kept.
Syntax
-u=user-id {-p=
cleanup_userinbox [-u= -p=password | -pf=password-file} -g=group-name]
-report=file-name] [-dryrun
[-report= -dryrun]
-dryrun [-v-v] -h]
-v [-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-report
Specifies the output file for the report. If this argument is not specified,
it is written to the standard output.
-dryrun
Generates a report of the changes to be made but does not update the database.
Actions that would be performed are displayed.
-v
Verbose mode. Provides information about the My Worklist inboxes processed.
This argument is recommended.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To generate a report about which changes would be made without actually
updating the database:
cleanup_userinbox -v -dryrun
• To consolidate the tcadmin user’s inboxes and display the report in the
standard output:
cleanup_userinbox -u=tcadmin -p=tcadmin
• To consolidate the tcadmin user’s inboxes and display the report in the
rpt_file file:
cleanup_userinbox -u=tcadmin -pf=pswd_file -report=rpt_file
clear_process_stage_list
Clears the process_stage_list field of the workspace object.
Note
Running this utility changes the date and time stamp of the objects
that it is run against.
Syntax
-u=user-id {-p=
clear_process_stage_list [-u= -p=password |
-pf=password-file} -g=dba
-g=dba] -folder [-h
-h]
-h
Arguments
-u
Specifies the user ID.
If this argument is used without a value, the operating system user name
is used.
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user. The group value must be dba
to run this utility.
-folder
Specifies the folder name where the target workspace objects should be placed
whose process stage lists are to be cleared. The folder must be a single
folder directly inside the executing user's Home folder.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
You must be logged on as a member of the dba group.
Examples
To clear the process_stage_list fields of all the objects in the my_folder
object, enter the following command on a single line:
$TC_ROOT/bin/clear_process_stage_list -u=user-id -p=password -g=dba -folder=my_folder
global_transfer
Transfers all tasks of one user ID or resource pool to another user ID or
resource pool. This utility provides the capability to transfer tasks, as
follows:
• Users can transfer their own tasks to another user.
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-f
Specifies the ID of the user whose inbox tasks are being transferred or the
group/role resource pool inbox tasks of a specified group/role. Group/Role
transfers resource pool inbox tasks for a specified group/role. Group/*
transfers resource pool inbox tasks of a specified group and any role. */Role
transfers resource pool inbox tasks of a specified role and any group.
-t
Specifies the ID of the user to whom the tasks are being transferred, or the
group/role transfers resource pool inbox tasks of a specified group/role.
Group/* transfers resource pool inbox tasks of a specified group and any role.
*/Role transfers resource pool inbox tasks of a specified role and any group.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
The gtransfer_ xxxxx.log file provides a listing of selected tasks, whether
Y/N),
they have been transferred (Y/N
Y/N to whom they were transferred, and if there
were any errors in the transfer.
Restrictions
None.
Examples
To transfer all tasks from user Mike to user Kevin, enter the following
command on a single line:
global_transfer -f=mike -t=kevin
install_handlers
Defines action handlers. It can also configure new action handlers and modify
the definition of existing handlers.
Syntax
-u=user-id {-p=
install_handlers [-u= -p=password | -pf=password-file} -g=group-name]
-f= {install listall} -id=handler-ID
install | create | modify | delete | listall
[-funcname= function-name]
-funcname= -functype=1 | 2
-execmode=1 | 2 -desc=handler-description
-retrycount=retry-count] [-retryinterval=
[-retrycount= -retryinterval= retry-interval-in-minutes]
-exectime=time-of-the-day-in-24-hour-format] -override=true | false [-h
[-exectime= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-f
Specifies the mode in which the utility must execute. The mode must be one
of the following:
• install
• create
• modify
• delete
• listall
-id=
Specifies the handler ID.
-funcname
Specifies the name of the library function. Use this argument when the
-functype argument is set to 1.
-functype
Specifies whether the handler is a library function or a stand-alone
executable. The value for this argument must be one of the following:
1
Library function
2
Stand-alone executable
-execmode
Specifies the handler's execution mode. The value for this argument must be
one of the following:
1
Executes the handler in the calling process.
2
Executes the handler as a separate process.
-desc
Specifies the handler description.
-override
Specifies if the handler execution time can be overridden. The value for this
argument must be one of the following:
true
Allows override.
false
Disables override.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To install the default action handlers, enter the following command on a
single line:
install_handlers -f=install
• To create an action handler with the specified attribute values to set the
execution time for the handler to 6.00 p.m., enter the following command
on a single line:
install_handlers -f=create -id=MyActionHandler -funcname=Myfunc
-functype=1 -execmode=1 exectime=1800
• To set the retry count value to 5 for the MyActionHandler action handler,
enter the following command on a single line:
install_handlers -f=modify -id=MyActionHandler -retryCount=5
• To list all the action handlers defined in the database, enter the
following command on a single line:
install_handlers -f=listall
migrate_ecm_ids
Allows users to create Change Viewer objects with a new naming rule that
changes the name length in a database originally created in Teamcenter
engineering process management. This utility must be run in the Teamcenter
environment after upgrading from a Teamcenter engineering process management.
Syntax
-u=user-id {-p=
migrate_ecm_ids [-u= -p=password | -pf=password-file} -g=group-name]
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
None.
migrate_wf_handlers
Transforms the name and/or arguments of workflow handlers from one format to
another. Task templates may have one or more workflow handlers associated with
them. This utility transforms the handlers associated with templates that are
active, as well as template versions that are obsolete but that are still
referenced by uncompleted workflow processes or jobs.
This utility uses an XML mapping file to migrate handlers and their arguments.
The mapping file top-level nodes define an action (rule or transform) to
Replace, Remove
perform, such as Replace Remove, or Update
Update, on the individual handler
specified within them.
Syntax
-u=user-id {-p=
migrate_wf_handlers [-u= -p=password | -pf=password-file}
-g=group-name] [-report=
-report=report-file-name [-dryrun
-dryrun]
-dryrun
-listonly]
[-listonly -templates=template-to-migrate,
-listonly [-templates=
-templates_file= path-and-name-of-csv-file]
...] [-templates_file=
...
-mapping_file= path-and-name-of-xml-mapping-file] [-v
[-mapping_file= -v] -h]
-v [-h
-h
Arguments
Entries in parentheses are accepted abbreviations for arguments.
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges.
If this argument is used without a value, the operating system user name
is used.
Note
-p
Specifies the user's password.
If used without a value or if neither the -pf nor the -p argument is
used, the system displays an error and asks for a username and password
interactively.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file.
If used without a value or if neither the -pf nor the -p argument is
used, the system displays an error and asks for a username and password
interactively.
For more information about managing password files, see Manage password
files.
• The Replace rule cannot replace an action handler with a rule handler
and vice versa.
Examples
• The following example does not migrate handlers, it only performs a dry run
in verbose mode, with the output information sent to the standard output.
The TC_DATA variable is specified for Windows systems. Because -u and -p
are not specified, the user's operating system credentials are used.
migrate_wf_handlers -v -dryrun -mapping_file=
%TC_DATA%\wf_handler_migration.xml
• The following example migrates the handlers using the tcadmin user with
verbose output to the standard output. The TC_DATA variable is specified
for UNIX/Linux systems.
migrate_wf_handlers -v -u=tcadmin -p=tcadmin -mapping_file=
$TC_DATA/wf_handler_migration.xml
• The following example migrates the handlers using the tcadmin user and a
rpt_file):
password file with verbose output to the specified report file (rpt_file
rpt_file
migrate_wf_handlers -v -u=tcadmin -pf=pswd_file -report=rpt_file
-mapping_file=./map.xml
• The following example migrates in silent mode only the handlers used by the
specified workflow template:
migrate_wf_handlers -templates="Authorization WF Template"
-mapping_file=D:\Temp\MyMigrationMappingFile.xml
purge_processes
Purges completed processes based on the last-modified date of the process.
Objects such as e-mail messages that reference the process are not deleted.
Use the -f argument to delete both in-process and completed processes and sever
the references between objects and the processes.
Syntax
-u=user-id {-p=
purge_processes [-u= -p=password | -pf=password-file}
-g=group-name] -d=MM-DD-YYYY [-force
-force] -r]
-force [-r -h]
-r [-h
-h
Arguments
Entries in parentheses are accepted abbreviations for arguments.
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges.
If this argument is used without a value, the operating system user name
is used.
Note
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument
is not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password
files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-d
Specifies the cut-off date for processes to be purged. This is the
last-modified date of the process. All processes with a last-modified date
equal to or before the specified date are purged.
-f
Deletes in-process and completed processes specified by the -d argument
from the system and severs references between objects and the processes
being deleted. If this argument is not specified, only completed processes
that have no referenced objects are purged.
-r
Generates a report of the number and names of processes to be purged
without purging the processes.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
To remove all processes that have been modified on or before 15th April 1998,
enter the following command on a single line:
purge_processes -u=user-id -p=password -g=dba -d=04-15-1998
release_man
Releases objects in batch mode without creating workflow processes or audit
files.
Syntax
-u=user-ID {-p=
release_man [-u= -p=password | -pf=password-file} -g=dba
-g=dba]
-spec]
[-spec -unrelease]
-spec [-unrelease
-unrelease -retain_release_date [-status= status-type]
-status=
-folder=folder-name [-dataset=
-dataset=dataset] [item=
item=item-ID|
-key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]]
-rev=revision-ID] [-relation=
[-rev= -relation=relation] [-datasetName=
-datasetName=dataset-name]
[-datasetType= dataset-type] [-force
-datasetType= -force] -h]
-force [-h
-h
Arguments
-u
Specifies the user ID.
If this argument is used without a value, the operating system user name
is used.
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group. Must be the dba group.
See restriction #1.
-spec
Indicates that specifications and BOM view revisions of an item revision in
the release folder are released along with the item revision.
-unrelease
Removes the specified status type. See restrictions #2 and #5.
-retain_release_date
Specifies that if the object to be released is already released, the original
release date is retained. See restriction #5.
-status
Specifies the status type to be applied to all objects.
See restriction #2.
-folder
Specifies the name of the release folder. Place the objects whose status you
want changed into the release folder. See restriction #3.
Status is changed only on the objects one level down within the folder. For
example, if you place an item in the folder that contains multiple item
revisions, and these item revisions contain multiple datasets, only the status
of the item is changed. The status of the item revisions and their datasets is
not changed. To change the status of the item revisions, each item revision
must be individually placed in the folder at the same level as the item.
Use the -spec argument to change the status of specifications and BOM view
revisions of item revisions.
-dataset
Specifies that a dataset is released.
-item
Specifies the item ID of the dataset to be released. Use with the -dataset
argument.
-key
Specifies the key of the dataset to be released. Use with the -dataset
argument.
Use the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
Files
As specified in Log files produced by Teamcenter.
Restrictions
1. The user must be a member of the dba group.
2. The status type must be a valid status type defined for your site.
3. The release folder must be a single folder directly inside the executing
user's workspace Home folder.
4. The release_man utility does not release invalid objects or objects locked
by other processes.
Examples
• To apply the Released status type to all objects in the my_folder folder
(including ItemRevision specifications and BOM view revisions), enter the
following command on a single line:
$TC_ROOT/bin/release_man -u=user-id -p=password -g=dba -spec
-status=Released -folder=my_folder
• To remove the Released status type from all objects in the my_folder folder
(including ItemRevision specifications and BOM view revisions), enter the
following command on a single line:
TC_ROOT/bin/release_man -u=user-id -p=password -g=dba -spec -unrelease
-status=Released -folder=my_folder
released_parts_collector
Socket-based server application that receives requests from the
RDV-add-released-parts-queue workflow handler using the Teamcenter server.
Upon receiving the request, it opens the file that contains the list of parts
to be processed, locks the file, appends the newly released IA information to
the file, and unlocks the file. This application can be used in two modes.
When using the -S option, it works as a server, and when using the -C option,
it works as a client application.
Syntax
Server mode:
released_parts_collector_server S host-name:port-number master-file
Client mode:
released_parts_collector_server C host-name:port-number
Command 1: Cf host
-name:port-number client-IA-file
empty_master_list
Sends a message to the server to empty the master released parts list.
-h
Displays help for this utility.
Files
None.
Restrictions
None.
Examples
• To start the server on the trysun12 machine at port 5567 and create the
file master_list.xml file, enter the following command on a single line:
released_parts_collector -S trysun12:5567 /tmp/master_list.xml
• To empty the released parts list XML file on the server running on trysun12
5567, enter the following command on a single line:
at port 5567
released_parts_collector -C trysun12:5567 clear_master_file
tc_workflow_postprocess
Executes a specific action on a specific task in the workflow process from
which the related background process was initiated.
For example, you can use this utility to evoke the complete action on the Review
task in the workflow process from which a background tessellation process was
initiated. This utility then prompts the workflow task to either execute an
action (defined with the -action argument) or submit a decision (defined with
the -signoff argument). This can be useful when the conditions to execute the
action are not met until the background process completes. In these cases, the
user has typically moved on to other tasks or ended the session.
Use the -member_group and -member_role arguments to define the group/role used
for the background process. This is useful at sites where users have multiple
groups/roles and the user has changed to a group/role that is different
from his default login group/role while initiating the background process.
These arguments allow the tc_workflow_postprocess utility to assume the same
group/role the user was using at the time the workflow process was initiated.
It is expected that the same group/role is required to execute any action in
that workflow process on behalf of the user.
Syntax
-u=user-id {-p=
tc_workflow_postprocess [-u= -p=password | -pf=password-file}
-g=group-name] -status_xfer_type= transfer-type
itemid=item-id | -key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]]
[itemid=
-revid=rev-id -dsname= dataset-name -dataset_tag= dataset-tag -task_tag= tag
-member_group= group] [-member_role=
[-member_group= -member_role=role] [-action=
-action=action-name]
-trigger_comment= comment] [-signoff=
[-trigger_comment= -signoff=decision] [-signoff_comment=
-signoff_comment= comment] [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally a infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
-task_tag
Provides a text representation of the tag of the workflow task. The value can
be extracted from the XML file provided by either the EPM-invoke-system-action
or EPM-invoke-system-rule handler.
-member_group
Assumes the defined group name before executing an action on the workflow
process.
Use when users have multiple groups/roles and the user is expected to change
to a group different from their default login group while initiating the
background process.
This argument allows the utility to assume the same group the user was using
at the time the workflow process was initiated. It is expected that the same
group is required to execute any action in that workflow process on behalf
of the user.
-member_role
Assumes the defined role name before executing an action on the workflow
process.
Use when users have multiple groups/roles and the user is expected to change
to a role different from their default login role while initiating the
background process.
This argument allows the utility to assume the same role the user was using
at the time the workflow process was initiated. It is expected that the same
role is required to execute any action in that workflow process on behalf
of the user.
-action
Defines which action to trigger in the workflow task specified with the
-task_tag= tag argument.
assign, start
Valid actions are: assign start, complete
complete, skip
skip, suspend
suspend, resume
resume, undo
undo,
abort, and demote
abort demote. These action values are not case sensitive.
-trigger_comment
Provides the comment when triggering the action specified in the
-action= action-name argument.
-signoff
Specifies the utility will perform a signoff with the specified decision.
approve, reject
Valid signoff values are: approve reject, nodecision
nodecision. These signoff values
are not case sensitive.
-signoff_comment
Provides the comment for the signoff specified with the -signoff= decision
argument.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• The following example checks the group/role defined by the -member_group
Body/Designer)
and -member_role arguments (Body/Designer
Body/Designer against the group/role the user
is currently logged on with. If they do not match, the group/role of the
Body/Designer.
background processes group/role is changed to Body/Designer
The complete action is then invoked for the task specified by the -task_tag
argument and the comment Tessellation completed successfully is displayed.
$TC_ROOT/bin/tc_workflow_postprocess
-member_group=Body -member_role=Designer
-task_tag=AZwszeaegnHvqDAAAAAAAAAAAAA -action=Complete
-trigger_comment=”Tessellation completed successfully”
• The following example transfers the release status from a UGMASTER dataset
to its corresponding CAEMesh dataset:
$TC_ROOT/bin/tc_workflow_postprocess
-dataset_tag=QZPBK4_6x4$kbDAAAAAAAAAAAAA
-status_xfer_type=cae_mesh -itemid=000266
-revid=A -dsname=000266/A
verify_tasks
Finds all corrupted Change Viewer tasks, jobs, and other associated internal
task model objects in order to delete them from the database. If a corrupted
object, such as a job, is referenced in a folder, the reference is removed
and the job is deleted.
Syntax
-u=user-id {-p=
verify_tasks [-u= -p=password | -pf=password-file}
-g=group-name] [-m=
-m={list
-m= list | delete
delete}] [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-m
Sets mode to one of the following:
list
Lists corrupted jobs and tasks without deleting them.
delete
Lists and deletes corrupted jobs and tasks.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
None.
attribute_export
Queries for the objects that satisfy the conditions specified by condition
property name/property value pairs, sets new values for the properties to be
updated on the found objects, and exports the data to a TC XML file. You then
must use the tcxml_import utility to import the TC XML file containing the
updated values back into the database.
Caution
For more information about loading bulk data, see the Data Exchange Guide.
You can use these two utilities in conjunction to update the properties of
numerous objects at once. The update process allows you to update one or more
attributes of an object. When a specified object contains multiple attributes,
only the specified attributes are exported and updated.
For complex update operations, you can create an input XML file containing
instructions on which objects to update and the new values to apply. The file
is constructed as a series of UpdateSet entries; each entry must contain
type, where
type where, and update components.
Before performing lengthy update operations, you can use the utility to
determine the number of objects affected by a specified update operation.
For more information about the bulk update process, including instructions on
creating the input file, examples of different update operations, performance
statistics, and methods for managing the operation’s duration, see the System
Administration Guide.
Syntax
attribute_export
-u=user-ID
-p=password | -pf=password-file}
{-p=
-g=group]
[-g=
-inputfile=path-to-input-XML-file | -type=type-name
{-inputfile=
-cond_prop= property-name
-cond_value= value–name
-update_prop= property-name
-update_value= property-value}
-cond_operator= operator]
[-cond_operator=
performSchemaValidation]
[performSchemaValidation
performSchemaValidation
-queryonly]
[-queryonly
-queryonly
-log= log-file-path]
[-log=
-outdir=output-XML-file-directory]
[-outdir=
-batchsize=number-of-objects-to-update-per-batch]
[-batchsize=
-islandsize=number-of-objects-to-update-per-island]
[-islandsize=
-untransformed]
[-untransformed
-untransformed
-uidfile]
[-uidfile
-uidfile
-h]
[-h
-h
Arguments
-u
Specifies the user ID. The user must have administrative privileges.
If this argument is used without a value, the operating system user name
is used.
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user. The group value must be dba
to run this utility.
-inputfile
Specifies the full path to the input XML file containing instructions on
which objects to update and the new values to apply. The file is constructed
type, where
as a series of UpdateSet entries; each entry must contain type where, and
update components.
For more information about creating the input file, see the System
Administration Guide.
Use the input file for complex updates. (For simpler instances, you can use
the following arguments.)
-type, -cond_prop
You must use either this argument, or the -type -cond_prop, -cond_value
-cond_value,
-update_prop and -update_value arguments.
-type
Specifies the type of objects to be updated. For example, item or dataset or
StructureContext, and so on.
StructureContext
This argument accepts a single value, which must be a valid Teamcenter object.
Use multiple instances of this argument to specify multiple object types.
-cond_prop,
You must either use this argument in conjunction with the -cond_prop
-cond_value, -update_prop and -update_value arguments, or use the -inputfile
-cond_value
argument.
-cond_prop
Specifies the name of the property to be queried for and updated during export.
Note
When setting the value for this argument in the input file, you can use
the above format, or the following characters: =, !=, >, >=, <, <=.
This argument is optional and is only valid when used with, and placed after,
the -cond_prop and -cond_value arguments. For example:
-cond_prop=object_name -cond_value=”My obj #1”
-cond_prop=”last_mod_date” -cond_value=”01-DEC-2011 00:00”
-cond_operator=”LE” -cond_prop=”last_mod_date”
-cond_value=”01-DEC-2010 00:00” -cond_operator=”GE”
-performSchemaValidation
Enables schema validation of the XML input file.
-queryonly
Outputs the number of target objects affected by the specified update
parameters to a log file. If the number of objects is less than 100, the object
UIDs are included in the log file.
When you specify this switch, the utility does not perform the update, it
merely reports the number of affected objects.
Use this switch in conjunction with either the input file or the condition
and update arguments to determine how many objects are affected by specified
update operation. You can use the resulting information to determine batch
size, and to estimate the duration of the update operation.
For more information about update duration, see the System Administration
Guide.
-log
Specifies the path to the log file. By default, this is the current directory.
-outdir
Specifies the directory to which the TC XML file is generated. The file name
is automatically generated, using the following naming convention:
BulkAttrOut_1.xml, BulkAttrOut_2.xml, BulkAttrOut_3.xml
This argument is optional. If not specified, the current directory is used.
-batchsize
Specifies the number of objects to update per TC XML file.
800.
This argument is optional. The default value is 800
-islandsize
Specifies the number of objects to update per island. An island ties logically
related objects together.
For example, a simple island is:
Item, ItemRev, MasterForm
[Item, MasterForm]
The data in low level TC XML is grouped into islands by closure rules, in which
the root objects are assigned island IDs and the traversed objects are assigned
new island IDs when an INTER_ISLAND clause is evaluated.
The following example illustrates an assembly in which every child component
is placed in a separate island. The I at the end is the predicate for the
INTER_ISLAND clause.
TYPE.PSOccurrence:CLASS.WorkspaceObject:ATTRIBUTE.child_item:
[TYPE.PSOccurrence:CLASS.WorkspaceObject:ATTRIBUTE.child_item:
PROCESS+TRAVERSE:$opt_entire_bom=="true" &&
$opt_hl_tie=="false":I ]
An example of how island IDs are written in low level TC XML is:
<ItemRevision elemId="id7" island_id="4" item_revision_id="A"
items_tag="Q9L5sgKI4ghudD" last_mod_date="2011-11-15T07:57:46Z" object_desc=
"new desc" object_name="my data" object_type="ItemRevision" owning_group="#id4"
owning_user="#id2" parent_uid="Q9L5sgKI4ghudD" puid="gBB5sgKI4ghudD" />
<Item elemId="id7" island_id="4" puid="asd876jerTf"
last_mod_date="2011-11-15T16:03:30Z" object_desc="new description" item_id="003293"/>
<Item elemId="id8" island_id="4" puid="xgr23hgfgh43"
last_mod_date="2011-11-15T16:03:30Z" author="John Yates" item_id="003423"/>
100.
This argument is optional. The default value is 100
-untransformed
Exports the original values of the specified attributes.
This argument is optional.
-uidfile
Specifies the full path to the input XML file containing a list of object UIDs.
This argument is optional. If specified, it suppresses the function of the
-cond_prop argument.
-h
Displays help for this utility.
Environment
As specified in Configuring utilities in the Utilities Reference.
Files
As specified in Log files in the Utilities Reference.
Restrictions
The IDSM server must be running when you use this utility.
-type, -update_prop
You must use either the -inputfile argument, or the -type -update_prop,
-update_value, -cond_prop and -cond_value arguments.
-update_value
Note
Examples
• To update the attributes of certain properties as specified in the
propFile.xml file, enter the following command on a single line.
• To update prop3 to value3 and prop4 to value4 for type1 objects, when
value2, enter the following
prop1 equals value1 and prop2 is greater than value2
command on a single line.
attribute_export -u=infodba -pf=d:\password.txt -g=dba
-type=type1 –cond_prop=prop1 –cond_value=”value1” –cond_prop=prop2
–cond_value=”value2” –cond_operator=”GT” –update_prop=prop3 –update_value=
”value3” –update_prop=prop4 –update_value=”value4”
• To update prop3 to value3 and prop4 to value4 for type1 objects, when prop1
equals value1 and prop2 is greater than value2 in batches of 400, enter the
following command on a single line.
attribute_export -u=infodba -pf=d:\password.txt
-g=dba -type=type1 –cond_prop=prop1 –cond_value=”value1” –cond_prop=prop2
–cond_value=”value2” –cond_operator=”GT” –update_prop=prop3 –update_value=
”value3” –update_prop=prop4 –update_value=”value4” –batchsize=400
• To update an object description to red Desc and the object name to This
is a new object name for all items where the object_name property is my
red,white,yellow, enter the following
object and the str_attr property is red,white,yellow
command on a single line.
attribute_export -u=infodba -p=infodba -g=dba
-type=Item -update_prop=object_desc -update_value="red Desc"
-update_prop=object_name -update_value="This is a new obj name"
-cond_prop=object_name -cond_value="my obj" –cond_value=”str attr”
–cond_value=”red,white,yellow”
• To update the char_VLA to w,y.d,k,a for all items where the owning_user
AsL5bfuW4ghudD, enter the following command on a single line.
property is AsL5bfuW4ghudD
attribute_export -u=infodba -p=infodba -g=dba -type=Item -update_prop=
”char VLA” -update_value="w,y,d,k,a" -cond_prop=owning_user
-cond_value="AsL5bfuW4ghudD"
batch_export_translate_import
Exports, translates, and/or imports the named reference of a given type attached
to the specified dataset type that is attached to a specified item revision
with the given relation type. For example, this utility could be used to
export .wire files (named references) from the ALIAS_PROJECT dataset attached
to a specified CORP_CriteriaRevision item revision with an IMAN_specification
relation to the directory specified by the -output_path directory.
This utility works in one of the following modes:
• -e)
Export mode (-e
-e
Exports datasets from Teamcenter.
• -i)
Import mode (-i
-i
Imports datasets to Teamcenter.
• -eti)
Export, translate, import mode (-eti
-eti
Exports, translates, and imports the dataset back in to Teamcenter.
Syntax
-u=user-id {-p=
batch_export_translate_import [-u= -p=password | -pf=password-file}
-g=group] -infile= input-file -output_path= output-path
-translator= translator-executable -e -i -eit -nolog [-h -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-infile
Specifies the input file for exporting, translating, and importing a list
of datasets.
-i
Specifies that the utility performs only the batch import. The input file
format is as follows:
item-id|rev-id|dataset-type|relation|reference-type|dataset-uid|
new-dataset-name|path-of-file-to-be-imported
-e
Specifies that the utility performs only batch export. The file format for
exporting a given list of datasets is as follows:
item-id|rev-id|dataset-type|relation|reference-type|dataset-uid
-eti
Specifies that the utility export, translate, and import a list of datasets.
-translator
Specifies the translator executable or batch file used to translate the
exported files.
-nolog
Specifies that a log file will not be generated when the utility is run.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
In addition, the log file is created in the local directory specified by either
the TMP or TEMP environment variable.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To export the list of given datasets to the C:\temp directory, enter the
following command on a single line:
batch_export_translate_import -u=user-name -p=password -g=group-name -e
-infile=input-file-with-dataset-details -output_path=c:\temp
cleanup_ic_objects
Reverts changes made to an assembly as part of an incremental change (IC)
object. This utility analyzes the incremental change object and cleans up
the database to nullify the impact of the IC changes. For example, if a PLM
XML file that is updating an existing structure in the database is imported
using an IC object, this utility can be used to revert the effect the import.
This can be very helpful in cases where the PLM XML import failed and the
data is not in a consistent state.
Note
This utility does not restore the database to its original state before
the import.
o Add an existing item with GDE children as a BOM line and occurrence
group child.
A given IC object may contain many ICEs (incremental change elements). Each
ICE specifies the change type that was made (add/remove) and the affected
object of the change.
IC_add.
For add scenarios, the change type is IC_add
• When adding a BOM line/GDE line, the affected object is
PSOccurrence/GDEOccurrence. This utility deletes the ICE and
PSOccurrence/GDEOccurrence
PSOccurrence/GDEOccurrence.
PSOccurrence/GDEOccurrence
IC_add.
For modify scenarios, the change type is IC_add
• AbsOccData.
When modifying a BOM line property, the affected object is AbsOccData
This utility deletes the AbsOcc data.
• When modifying a BOM line attachment, the affected object is a copy of the
attachment (dataset/form) with the modifications. This utility deletes
the modified copy.
IC_remove.
For remove scenarios, the change type is IC_remove
• The affected objects point to the objects that are removed from the
structure. This utility deletes the ICE. It automatically restores the
removed objects.
Syntax
-u=user-id {-p=
cleanup_ic_objects [-u= -p=password | -pf=password-file} -g=group]
{ [-ic_id=IC-object-item-ID |
-ic_id= -key= IC-object-search-key]
-ic_rev_id=IC-object-rev-ID] } [-dryrun
[-ic_rev_id= -dryrun] -verbose]
-dryrun [-verbose
-verbose
[-start_date= start-date] [-end_date= end-date]
-start_date= -end_date=
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-ic_id
Specifies the item ID of the incremental change object whose associated data
will be deleted.
-key
Specifies the search key of the incremental change object. Use the following
format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
• -dryrun option only: Prints the number of objects found and the type of
objects that will be deleted in a normal run.
• Both options: Prints all of the information from the -verbose option except
the success/failure message.
-start_date
Changes made after the specified date and time are reverted. Use the format
DD-MMM-YYYY HH:MM:SS
HH:MM:SS. For example, 01-Jan-1970 00:00:00 is January 1, 1970.
If no time is specified, 00:00:00 is used.
-end_date
Changes made after the specified date and time are reverted. Use the format
DD-MMM-YYYY HH:MM:SS
HH:MM:SS. For example, 01-Jan-1970 00:00:00 is January 1, 1970.
If no time is specified, 00:00:00 is used.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
convert_replica_files_to_stubs
ImanFile objects) to pom_stub
Converts existing replica Teamcenter file (ImanFile
objects at the specified remote site, all remote sites, or specified objects
at all remote sites; it purges the corresponding operating system volume files
to conserve space. It can also populate the file server cache (FSC) with
replica files.
Syntax
-u=admin-id {-p=
convert_replica_files_to_stubs [-u= -p=password |
-pf=password-file} -g=dba
-g=dba]
-by_site_name= remote-site-id | ALL
{[-by_site_name= -by_plmxml=file-name]} [-verbose
ALL] | [-by_plmxml= -verbose]
-verbose
-populate_cache]
[-populate_cache -batch_size=size-value]
-query ] [-batch_size=
-populate_cache [-query
-h]
[-h
-h
Arguments
-u
Specifies the user ID. The user must have administrative privileges.
If this argument is used without a value, the operating system user name
is used.
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user. The group value must be dba
to run this utility.
-by_site_name
Specifies the name of the remote site where replica files are replaced with
stubs. If ALL is specified, replica files at all remote sites are replaced.
This argument cannot be combined with the -by_plmxml argument.
-by_plmxml
Specifies the name of a PLM XML file that contains replica objects to be
replaced by stubs. Only the objects listed in the file are replaced.
You must generate the PLM XML file specified in this argument using the
ConfiguredDataExportDefault or justDatasetsOut transfer modes. Other transfer
modes are not supported.
This argument cannot be combined with the -by_sitename argument.
-verbose
Includes additional information about the process in the utility's output.
-populate_cache
Populates the FSC with replica files at the sites where replica objects are
replaced with stub objects.
-query
Returns the number of objects that will be converted to stubs.
-batch_size
Specifies the number of objects in each batch that is processed. If this
argument is omitted, all objects are processed in a single batch.
-h
Displays help for this utility.
Environment
As specified in Configuring utilities in the Utilities Reference.
Files
As specified in Log files in the Utilities Reference.
Restrictions
The IDSM server must be running when you use this utility.
Examples
• Replace all replica objects at all sites with stub objects:
convert_replica_files_to_stubs -u=infodba -p=password -g=dba
-by_site_name=ALL
• Replace replica objects at the cologne site and populate the site's FSC:
convert_replica_files_to_stubs -u=infodba -pf=pwfile -g=dba
-by_site_name=cologne —populate
• Replace all replica objects at all sites with stub objects processed in
batches of 200 objects:
convert_replica_files_to_stubs -u=infodba -pf=pwfile -g=dba
-by_site_name=ALL -batch_size=200
database_verify
Compares database schema, Teamcenter types, tools, release statuses, and units
of measure between two specified Multi-Site Collaboration sites and generates
a report of any database discrepancies.
You can use this utility to query types and classes from a specified remote
site and create a local dataset named TCTYPES_SITE siteid containing those
mappings. There is one dataset for each remote site defined with the -site
argument. You can also create and update the local dataset of remote class and
types mappings for a specified remote site. Run this utility whenever there
are changes for the POM transmit file of a specified site.
Syntax
-u=user-id {-p=
database_verify [-u= -p=password | -pf=password-file} -g=group]
-from=site-name1 -to=site-name2
-schema]
[-schema -type]
-schema [-type -tool]
-type [-tool -status]
-tool [-status -uom]
-status [-uom -all]
-uom [-all -output=file-name]
-all [-output=
-site=site-name] -force -offline [-filename=
[-site= -filename=file-name] [-v
-v] -h]
-v [-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-from
Specifies a Teamcenter database site to be verified.
-to
Specifies a Teamcenter database site to be verified.
-output
Specifies the output format. The report is output to a file if a file name is
specified. If not, the report is displayed in a shell.
-schema
Compares schema between the two sites.
-type
Compares types between the two sites.
-tool
Compares tools between the two sites.
-status
Compares release status types between the two sites.
-uom
Compares units of measure between the two sites.
-notetype
Compares note types.
-all
Compares classes, types, tools, status types and units of measures between the
two sites. This is the default if no argument is supplied.
-site
Specifies the site name where types and classes would be persisted locally.
ALL, the utility generates these
If the value of this argument is set to ALL
datasets for all sites in the database.
-force
Generates the type-class mappings file even when the POM transmit files for
the remote and local sites have not changed.
-offline
Specifies the site identified with the -site argument is offline. If you
specify this argument, you must also specify the -filename argument.
-filename
Specifies the file name generated by this utility from the -site argument.
This argument is required if the -offline argument is specified.
-v
Runs utility in verbose mode. Displays maximum amount of information.
Typically, nonverbose utility sessions only display error messages.
-h
Displays help for this utility.
Environment
As specified in the Manually configuring your environment for Teamcenter
utilities.
Files
As specified in the Log files produced by Teamcenter.
Restrictions
• To use this utility, you must be a user with system administration
privileges or be granted authorization by a user with system administration
privileges.
Examples
None.
data_share
Used for various Multi-Site Collaboration operations, such as publishing and
unpublishing objects collectively and sending objects to remote sites. It
can be used as a deployment tool during the initial Multi-Site Collaboration
implementation phase or as a day-to-day tool for performing functions that
previously were available only through the user interface. This utility is
especially helpful in setting up and maintaining a hub configuration.
The behavior of this utility is controlled by the
TC_force_remote_sites_exclude_files preference. If this preference is set to
true, the replica files are stored in the remote site FMS server cache (FSC);
true
otherwise, the replica files are stored in the remote system volume.
The utility also supports TC XML transfers for of 4th Generation
Design (4GD) data. The 4GD relation data mapping is controlled by the
TC_cms_relation_optset_map preference. You use this preference when you want
to control the relations that are included or excluded when replicating
a 4GD object.
For more information about controlling relations using this preference, see
the Preferences and Environment Variables Reference.
This utility supports part family templates and part family members.
Use this utility to:
• Mass publish objects to one or more Object Directory Services (ODS) sites.
• List ODS sites currently defined in the local database and authorized
for publication.
• Folder name
• Object ID template
When sending objects to a specific user and/or group at a remote site using
the -owning_user and -owning_group arguments, the following rules apply:
• If both the specified user and group exist at the importing site, the
imported objects are owned by the user and group regardless of whether or
not the user is a member of the group.
• If only the user is specified or if the group is specified but does not
exist at the importing site, the user's default group at the importing site
is the owning group of the imported objects.
• If only the group is specified or if the user is specified but does not
exist at the importing site, the user context of the remote IDSM process is
the owning user of the imported objects.
Syntax
-u=user-id {-p=
data_share [-u= -p=password | -pf=password-file} -g=group]
-f={function} [-site=
-f= -site=remote-site-name1 -site=remote-site-name2... ]
-owning_user=remote-user] [-owning_group=
[-owning_user= -owning_group= remote-group]
-item_id= item-id | template} | -folder= folder-name |
-item_id={
{-item_id=
-name=workspace-object | -filename= input-file |
-key=keyAttr1=keyVal1,keyAttr2=keyVal2…,keyAttrN=keyValN |
[-key=
-itemKeyFile= file-name] | [-itemRevisionKeysFile=
-itemRevisionKeysFile= file-name]}
-class=wso-class-name | -classoffile= class-name]
[-class=
-include=relation-type1 -include= relation-type2...]
[-include=
-exclude=relation-type1 -exclude= relation-type2...]
[-exclude=
[--revision-selector | -rev=rev-id ]
-include_bom]
[-include_bom -transfer]
-include_bom [-transfer -attach]
-transfer [-attach -exclude_files]
-attach [-exclude_files -latest_ds_version]
-exclude_files [-latest_ds_version
-latest_ds_version
-exclude_folder_contents]
[-exclude_folder_contents -include_bc]
-exclude_folder_contents [-include_bc -include_supercedures]
-include_bc [-include_supercedures
-include_supercedures
-include_pfmembers]
[-include_pfmembers -include_pftemplates]
-include_pfmembers [-include_pftemplates -pf_bom_treatment= option]
-include_pftemplates [-pf_bom_treatment=
-continue_on_error]
[-continue_on_error batch_size=number-objects-per-batch]
-continue_on_error [batch_size=
-report=report-file-name] [-user=
[-report= -user=user-id] [-group=
-group=group-name]
-error_file=error-file-name] [-exclude_variant_options
[-error_file= -exclude_variant_options]
-exclude_variant_options
-batch_variant_options]
[-batch_variant_options -batch_objects= class-for-deferred-objects]
-batch_variant_options [-batch_objects=
-batch_file=file-name-for-deferred-objects]
[-batch_file=
-include_dist_comp]
[-include_dist_comp -log]
-include_dist_comp [-log
-log
-checkpoint [-compress_ind_files=S
[-checkpoint -transaction_id= transaction-id]
-compress_ind_files=S | I | N] ] [-transaction_id=
-status]
[-status
-status
-transaction_id= transaction-id |
-cleanup_transaction [-transaction_id=
[-cleanup_transaction
-before_last_process_date= date] ]
-restart]
[-restart -commit_ixr]
-restart [-commit_ixr -list_transactions]
-commit_ixr [-list_transactions
-list_transactions
[-low_level -optionset | -optionset= optionset-name] [-de_incl_rlz_bom
-low_level [-optionset -de_incl_rlz_bom]
-de_incl_rlz_bom
-workset_include_relz_de]
[-workset_include_relz_de -4gd_id=object-id -class=4gd-class-name] ]
-workset_include_relz_de [-4gd_id=
-all_roles]
[-all_roles -all_subgroups]
-all_roles [-all_subgroups -all_groupmembers]
-all_subgroups [-all_groupmembers
-all_groupmembers [-h-h]
-h
Arguments
Note
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
Caution
For HTTP enabled sites, remote site operations log on using the default
group for the user supplied with the -u argument. Any value supplied
with the -g argument is ignored.
-f
Specifies the function to be performed; you must specify one of the following:
send
Sends objects to the specified remote sites.
-item_id, -folder
The objects to send are determined by the -item_id -folder, -filename
-filename,
-4gd_id, -all_subgroups
-4gd_id -all_subgroups, -all_roles
-all_roles, or -all_groupmembers arguments.
publish (pub)
Publishes objects to the given ODS sites. The objects to publish are
-item_id, -folder
determined by the -item_id -folder, or -filename arguments. Cannot be
-all_subgroups, -all_roles
used with the -all_subgroups -all_roles, or -all_groupmembers arguments.
unpublish (unp)
Unpublishes objects from the given ODS sites. The objects to unpublish are
-item_id, -folder or -filename arguments. Cannot be used
determined by the -item_id
-all_subgroups, -all_roles
with the -all_subgroups -all_roles, or -all_groupmembers arguments.
delete_pubrec (dpr)
Deletes obsolete publication records for the specified object from the
local database. This must be run at the ODS site containing the publication
record to be deleted. Only privileged users may use this function.
Requires the -item_id argument with specific item ID; no wildcards or other
arguments are supported with this function.
Note
To be used only if the master object has been deleted but publication
records still exist at the ODS site.
register (reg)
Registers item IDs to the central item ID registry.
unregister (unreg)
Unregisters item IDs from the central item ID registry. The register and
unregister functions must be supplied with the -item_id or -filename
argument.
delete_exprec (dxr)
Deletes export records for the specified sites for objects listed in the
text file identified by the -filename and -classoffile arguments. It does
not traverse item structure. Only privileged users may use this function.
Note
list_ods (lo)
Lists the authorized ODS sites, which consist of the default ODS site and
the sites specified by the ODS_publication_sites preference.
check_ods (co)
Lists the availability of authorized ODS sites.
list_pub_info (lpi)
Lists publication information about objects. Must be run at the owning
site.
find_duplicates (fd)
Compares all of the item IDs at the remote site specified by the -site
-item_id,
argument. The item IDs searched for may be filtered with the -item_id
-created_before, and -created_after arguments. The output may be directed
-created_before
to a file using the -report argument. The output is formatted to csv
style, using comma-separated values.
-created_before
Restricts searches for duplicate items to those created at the target
site before the specified date.
-created_after
Restricts searches for duplicate items to those created at the target
site after a specified date.
list_remote_co (lremco)
Lists master objects that are checked out by remote users based on the
specified user ID, group name, and site name.
list_replica_co (lrepco)
Lists replica objects that are checked out from a remote site based on the
specified user ID, group name, and site name.
cancel_remote_co (cremco)
Cancels all remote checkouts based on the specified user ID, group name,
and site name.
cancel_replica_co (crepco)
Cancels replica checkouts based on the specified user ID, group name, and
site name. Canceling a replica checkout also cancels the remote checkout
at the owning site.
remote_import (ri)
Imports the item specified by the -item_id argument from the owning site
or the site specified by the -site argument. If the item is a replica at
the local site, it is imported from the owning site and any site specified
in the command is ignored.
Note
You can also use this argument to import a list of items from an input file
designated by the -filename argument. The input file must contain UIDs
for the items to be imported, and the -classoffile argument value must be
set to Tagstring when using an input file. You can use the sync_on_demand
utility to generate a file that contains UIDs of items of an assembly
enclosed within square brackets ([[ ]) or other designated separator. You
can then write a script to collect the UIDs into the input file.
The data_share arguments related to variants and line of usage (LOU) cannot
be used with the remote_import argument.
-site
Specifies the name of the site to which objects are published or from which
they are unpublished. It can be given multiple times in a command line.
-owning_user (ou)
Specifies the user ID of the user at the remote sites to which the objects are
sent. The specified user owns the objects being sent. See Restrictions.
-owning_group (og)
Specifies the name of the group at the remote sites to which the objects are
sent. The group owns the objects being sent. See Restrictions.
-item_id (item)
Specifies the item ID or template of items to process. It is mutually exclusive
-folder, -filename
with the -folder -filename, -keyFileName
-keyFileName, -name and -key arguments. It is
required for the -delete_pubrec argument.
-folder (fl)
Specifies the name of a Teamcenter folder containing the list of objects to
-name, -filename
process. It is mutually exclusive with the -name -filename, and -item_id
arguments.
Note
If the -include_bom argument is used with the -folder argument, only the
ItemRevision objects (and objects related to them) in the folder are
replicated. The folder itself is not replicated.
-name
Specifies the name of a single workspace object to be precessed. If not an
item, use the -class argument to specify the class of the object. It is
-folder, -filename
mutually exclusive with the -folder -filename, and -item_id arguments.
For organization objects, this argument accepts the following attributes:
• User objects require a user_ID attribute.
• Group objects require the groups full name that uniquely identifies the
group.
You can use a text file containing a list of all organization objects
of the same type that you want to export using the -classoffile and
-filename arguments.
-filename (fn)
Specifies the name of the input file containing the list of IDs or names
of objects to process. File entries are treated as IDs for Items and
ItemRevisions objects and as names for other classes of objects. It is
-name, -folder
mutually exclusive with the -name -folder, -item_id
-item_id, -key
-key, -itemKeysFile
-itemKeysFile,
and -itemRevisionKeysFile arguments.
If the input file contains names, the -classoffile argument is required.
-key
Specifies the keys of the items to process, the template of the item keys, or
the 4GD object key. It is mutually exclusive with the -item_id argument. Use
the following format:
keyAttr1=keyVal1,keyAttr2=keyVal2…,keyAttrN=keyValN
item_id=export_001
item_id=M2Item1_001,object_name=M2Item_name1,object_type=M2Item1
If the item key file has 4GD object key strings, the corresponding 4GD class
must be supplied using the -classoffile(cof)= argument. The following listing
shows sample content of a file for updating 4GD data:
4gd_id=DE_Export_001
4gd_id=DE00001_ID,object_name=DE00001_Name,object_desc=DE00001_Desc
The 4g_id entry maps to the corresponding unique ID of the 4GD class, for
example:
Class=Cpd0DesignElement, 4gd_id=cpd0_design_element_id
-itemRevisionKeysFile
Specifies the name of the file containing the keys of the item revisions to
process. It is mutually exclusive with the -item_id argument.
-class (cl)
Specifies the Teamcenter class of the object specified by the -name or -4gd_id
argument. This argument is valid only with the -name or, when the -low_level
Item.
argument is specified, with the -4gd_id argument. The default class is Item
Role, User
For organization objects, this argument accepts Role User, Group
Group, and Person
classes.
-classoffile (cof)
Specifies the class of the objects listed in the input text file given with
Item. It is
the -filename argument. If not defined, the default class is Item
required if the input file has names instead of IDs.
Role, User
For organization objects, this argument accepts Role User, Group
Group, and Person
classes.
-include
Specifies a relation type to include. This can be specified multiple times
in a command line. The database name (not the display name) of the relation
type must be used.
-exclude
Specifies a relation type to be excluded from the operation. This can be
specified multiple times in a command line. The database name (not the display
name) of the relation type must be used.
Note
• IMAN_specification
-revision-selector
Note
Identifies the item revisions to send. It is also used as the revision rule
for identifying components when processing assemblies. When used with the
-include_bom argument while publishing or unpublishing, it determines which
revisions' BVR to follow in traversing the assembly tree. The valid revision
selectors are as follows:
all_revisions
Sends all revisions. it is not valid when publishing.
latest_revision
Processes only the latest revision regardless of release status. This is the
default if no revision selector is given when publishing or unpublishing.
selected_revision
Process only the selected revision.
latest_working
Processes only the latest working revision.
latest_released
Processes only the latest released revision with any release status.
latest_working_or_any
Sends only the latest working revision. If none, the latest released
revision is processed.
release_status
Processes only the latest released revision with the given release status.
all_released _revs
Sends all revisions with a release status; it is not valid when publishing.
-rev
Specifies the ID of a specific item revision to be sent to a remote site. It
is valid only with the -item_id argument and with the -send function, and is
mutually exclusive with revision selectors.
-include_bom (bom)
Includes assembly components when sending, publishing, or unpublishing. A
revision selector is required when publishing or unpublishing an assembly; if
no revision selector is given, the latest_revision selector is used as the
all_revisions.
default. When sending, the default selector is all_revisions
off.
If not specified, this argument defaults to off
This argument does not traverse the component relationships of subassemblies.
This allows you to send the subassemblies is separate transactions. Using
multiple, simultaneous transactions to transfer very large assemblies and
their subassemblies separately provides improved scalability and performance.
Note
This argument, although similar to the rich client Include Entire BOM
remote export option, may not export the same set of objects. The
Include Entire BOM option traverses all components, subassemblies, and
subassembly component relationships that can result in unacceptable
performance for very large assemblies.
-transfer (tf)
Transfers site ownership when sending objects. Site ownership is not
transferred by default.
-attach (att)
Attaches an object to the appropriate parent item or revision at the receiving
site when sending an attachment with transfer of site ownership. Use this for
situations in which you attach a dataset to a replica, such as a JT file, and
you want to send the JT file to the owning site with transfer of site ownership
and attached to the appropriate parent item or revision.
-exclude_files (exf)
Excludes dataset files.
-latest_ds_version (ldv)
Sends only the latest dataset version. Unless this argument is specified,
all dataset versions are sent.
-exclude_folder_contents (efc)
Excludes the contents of folders being exported.
-include_bc (ibc)
Identifies the BomChange objects associated with the affected assemblies to
send. If not specified, BomChange objects are not sent.
-include_supercedures (isc)
Identifies the supercedure objects associated with the BomChange objects to
send. If not specified, supercedure objects are not sent.
-include_pfmembers
Identifies the related part family members to be exported when handling part
family templates.
-include_pftemplates
Identifies the related part family template to be exported when handling
part family members.
-pf_bom_treatment
Identifies the part family objects associated with the assemblies to be
exported. The argument must be used in conjunction with the -include_bom
argument. Valid arguments are:
-members
Includes part family member components present in the assembly.
-templates
Includes part family template rather than part family member components.
-all
Includes both the part family member components and templates.
-none
Includes neither the part family member components nor the templates.
-continue_on_error (con)
Specifies processing is continue if there is an error on an optional object
such as a reference or manifestation. This argument is not valid when
transferring site ownership.
Outputs the error in a report file and continues processing the other items.
The -report argument must be specified to see the error.
-batch_size (bs)
Specifies the number of objects per batch; a new process is created per batch.
The default batch size is 1000. It must be a positive integer. This is useful
when processing thousands of objects, because it helps avoid memory and disk
space shortage problems.
-report (rep)
Specifies to output a report to the specified file.
-user
Specifies the user ID.
-group
Specifies the group name.
-error_file (err)
Specifies the name of the output error report when sending assemblies.
-exclude_variant_options (evo)
Indicates all variant options are to be excluded during a send operation.
-batch_variant_options (bvo)
Indicates all variant options are sent separately in batch mode.
-batch_objects (bo)
Indicates all objects of the given classes are sent separately in batch mode.
Separate each class name with a comma. The list cannot contain spaces. The
following table is a list of supported classes for this argument:
-batch_file (bof)
Indicates all objects of the classes in the specified file are sent separately
in batch mode. List each class name separately on a line in the file. For a
list of supported classes for this argument, see the table for the description
of the batch_objects argument.
-include_dist_comp
Includes distributed components during import. This argument is valid only
in conjunction with the -remote_import argument.
-log
Specifies detailed log information is written to the log file.
-checkpoint (cp)
Initiates a checkpoint transaction; that is, a transaction that can be
restarted at the point of failing.
This argument is valid only with send function. It is not valid with the
-transfer argument.
If a noncheckpoint operation is initiated for multiple target sites and some
target sites are not currently available based on a preliminary availability
check, Teamcenter sends a message to stdout to notify the user about
unavailable sites, removes unavailable sites from the target site list, and
then performs the operation for the available sites.
compress_ind_files (cif)
Specifies compression mode to use to compress files in the export directory
during a checkpoint transaction. If not specified, it creates a single large
ZIP file. This argument is valid only with the -checkpoint argument. Valid
values are:
• S
Creates a single large ZIP file.
• I
Creates a ZIP file for each individual file, resulting in multiple ZIP
files.
• N
No files are compressed.
-transaction_id (trid)
Specifies a 14-character transaction ID for a given checkpoint-related
operation or for a fast sync transaction if used with the -low_level argument.
A fast sync transaction provides improved performance when synchronizing data
using the data_sync utility.
-status (stat)
Displays the status of a given transaction ID.
If the -site switch is given, only status of the given sites are displayed.
If no -site switch is given, the status returned depends on whether the
command is given at the site that initiated the checkpointed transaction or
the site is the receiving end of the transaction. If the command is given at
the initiating site and no -site switch is given, the status of the local
site and all target sites is returned.
-cleanup_transaction (ct)
Removes transient data generated during a checkpoint transaction or fast sync
transactions if use with the -low_level argument.
For checkpoint transactions, the transient data consists of the export data
and supporting directories and files used to manage the transaction. You must
execute this function at a node or host that has direct access to the transfer
area where the export was performed (if at initiating site) or where the data
was transmitted to by the owning site (if at receiving site). You must also
have delete access to the operating system directory where the export data is
placed within the transfer area. If these conditions are not met, an error
message is displayed to stdout and the utility returns a nonzero value.
For fast sync transactions, you must specify either the -transaction_id or
-before_last_process_date argument.
-before_last_process_date (blpd)
Specifies the date used to determine which fast sync transactions to clean up.
The date must be supplied in the following format:
YYYY-MM-DD:HH:NN:SS
YYYY represents the four-digit year value. MM represents the two-digit month
value. DD represents the two-digit day of the month. HH represents a two-digit
hour value from 0 to 23. NN represents a two-digit minute value from 0 to 59
and SS represents a two-digit second value from 0 to 59. The DD:HH:NN:SS
are optional. If they are not specified, the utility uses 12:00 AM of the
specified date.
Valid only with the -cleanup_transaction argument.
-restart (rs)
Restarts a given transaction at the point of failure.
Valid only with the -f=send function.
-commit_ixr (cmi)
Updates the export records at the owning site once the data is known to have
been successfully imported at a target site.
Under normal conditions, the update of the export records are performed
automatically by each subprocess that succeeds in completing the send operation
to its assigned site. Use this function only if either of the following
conditions occur:
• The failure occurs at the importing site, and the user performs the restart
using the item_import utility.
You must use at least one -site argument to identify the site or sites for
which export records are to be updated.
You must execute this function at a node or host that has direct access to the
transfer area where the export was performed (if at initiating site) or where
the data was transmitted to by the owning site (if at receiving site). You
must also have read access to the operating system directory where the export
data is placed within the transfer area. If these conditions are not met, an
error message is displayed to stdout and the utility returns a nonzero value.
-list_transactions (lt)
Lists all uncleaned checkpoint transactions or fast sync transactions if
used with the -low_level argument. An uncleaned transaction is one in which
its transient data has not been deleted from the transfer area using the
cleanup_transaction function.
• Active transactions can only be detected at the site that initiated it. The
receiving end of a transaction is not able to determine if a transaction
is active or not.
• The list of inactive transactions initiated by the local site and the list
of transactions initiated by remote sites are based only on the contents of
the transfer area of the node where this command is executed.
You must execute this function at a node or host that has direct access to
the transfer area where the export was performed (if at initiating site) or
where the data was transmitted to by the owning site (if at receiving site).
You must also have read access to the operating system directory where the
export data is placed within the transfer area. If these conditions are not
met, an appropriate error message is displayed to stdout and the utility
returns a nonzero value.
-all_subgroups
Exports all subgroups of the selected group. Parent groups are always
exported. This argument is valid only when the -class or -classoffile argument
Group.
is set to Group
-all_roles
Exports all roles associated with the selected group. All roles for subgroups
are included if the -all_subgroups argument is also specified. If not
specified, only the default role is exported.
This argument is valid only when the -class or -classoffile argument is set
Group.
to Group
-all_groupmembers
When exporting a User object, exports all GroupMember objects related to the
-all_subgroups
selected user. When exporting groups or groups and subgroups (-all_subgroups
argument), exports all GroupMember objects related to any role that is
exported.
You must specify one of the following arguments to use this argument:
• -class=User
• -classoffile=User
• -class=Group
• -classoffile=Group
If this argument is not specified when exporting User class objects, only the
default group related to the user is exported.
If this argument is not specified when exporting Group class objects, no
GroupMember objects are exported.
-low_level
Exports the data using the low-level TC XML functionality. This provides better
performance for large data transfers and must be used when exporting 4GD data.
You can replicate 4GD objects to a remote site when you specify the -low_level
argument with the send function. Specify the objects to replicate using the
-class and -4gd_id arguments. You can specify the transfer option set used for
the export in the -optionset argument. If you do not specify an option set, the
utility uses MultiSiteOptSet as the default transfer option set value. For 4GD
objects, you can also specify the -de_incl_rlz_bom and -workset_incl_relz_de
arguments only when you specify the -optionset argument.
-4gd_id
Specifies a 4GD object identifier or 4GD object pattern. The -class=class-name
argument must be specified with the -4gd_id argument.
The utility maps the -4gd_id argument to the corresponding unique ID of the
4GD class, for example:
Class=Cpd0DesignElement, 4gd_id=cpd0design_element_id
A 4GD partition object and 4GD subset definition objects do not have a unique
4GD class ID. Therefore, using -4gd_id for partition objects or subset
definition objects or may result in transfer of multiple objects.
To export unique partition object use multifield key attributes supplied in
the -key argument, see Examples.
-optionset
Specifies the name of the transfer option set when sending objects using
-low_level argument). Values of the options
low-level TC XML functionality (-low_level
listed in the option set govern the object export. The option set must exist
at the exporting site. If you do not specify this argument, the utility uses
the MultiSiteOptSet option set.
-de_incl_rlz_bom
Cpd0DesignElement).
Exports the source objects of a design element (Type:Cpd0DesignElement
Cpd0DesignElement You
must specify the -low_level argument and specify a 4GD object using the
-4gd_id, -key
-4gd_id -key, or -itemKeyFile argument.
-workset_incl_relz_de
Cpd0DesignElement)
Exports the source objects of a design element (Cpd0DesignElement
Cpd0DesignElement in a
Cpd0Workset).
workset (Cpd0Workset
Cpd0Workset You must specify the -low_level argument and specify a
-4gd_id, -key
4GD object using the -4gd_id -key, or -itemKeyFile argument.
-h
Displays help for this utility.
Environment
As specified in the Manually configuring your environment for Teamcenter
utilities.
Files
As specified in the Log files produced by Teamcenter.
Restrictions
1. When sending objects to a specific user and/or group at a remote site using
the -owning_user and -owning_group arguments, the following rules apply:
• To use this utility, you must be a user with system administration
privileges or be granted authorization by a user with system
administration privileges.
• If both the specified user and group exist at the importing site, the
imported objects are owned by the user and group regardless of whether
or not the user is a member of the group.
• If only the user is specified or if the group is specified but does not
exist at the importing site, the user's default group at the importing
site is the owning group of the imported objects.
3. Any number of objects can be sent separately in batch mode. Class names
of objects can be given in a comma-delimited list with the -batch_objects
argument or listed in a file whose name is specified in the -batch_file
argument.
-item_id, -name
4. The -item_id -name, -filename
-filename, -folder
-folder, -key
-key, -itemKeyFile
-itemKeyFile,
-itemRevisionKeysFile, and -4gd_id arguments are mutually exclusive
-itemRevisionKeysFile
Examples
Note
• To publish an assembly item and all its components using the latest
revision rule to determine components:
data_share -f=publish -item_id=Engine100 -site=Ods1 -include_bom
• To publish an assembly item and all its components using the latest
released revision rule to determine components:
data_share -f=publish -item_id=Item1 -site=Ods1 -include_bom
-latest_released
• To unpublish an assembly item and all its components from multiple ODS
revision:
sites using the default revision rule latest revision
data_share -f=unpublish -item_id=Item1 -site=Ods1 -site=Ods2
-include_bom
Use this only if the master object has been deleted, but the
publication record still exists.
• When publishing thousands of items and you get errors after publishing
several hundreds or even thousands of items, reduce the batch size:
• Site2:
To list all objects that are checked out by user justin at Site2
data_share -f=list_remote_co -user=justin -site=Site2
• Site2:
To cancel check out of all objects by user joseph at Site2
data_share -f=cancel_remote_co -user=joseph -site=Site2
• To list all replica objects that are checked out by local group engg from
Site1:
remote site Site1
data_share -f=list_replica_co -site=Site1
• Site1:
To cancel all replica objects that are checked out by user davis from Site1
data_share -f=cancel_replica_co -user=davis -site=Site1
• To batch send one or more classes of objects given in a text file during a
send operation:
data_share -f=send -item_id=CR0002 -site=remote1
-batch_file=my_list.txt -batch_size=10000
• Site2):
To import an item from a remote site (Site2
Site2
data_share -f=remote_import -site=Site2 -item_id=xyz
• UIDs_list.txt)
To import the objects of an assembly using a file (UIDs_list.txt
UIDs_list.txt
containing a list of UIDs:
data_share -f=ri -filename=UIDs_list.txt -classoffile=Tagstring
• To import an item from its owning site that is published to an ODS site
Site3):
(Site3
Site3
data_share -f=ri -ods_site=Site3 -item_id=xyz
• To export a role that does not have any group members from the TopGrp1
group:
data_share -class=group -name=TopGrp1 -f=send
-all_groupmembers -site=Site2
The time stamp represents the last time the status was updated.
At a receiving site, only the status of the local site is obtained; the
status of other sites involved in a transaction are not available.
• AhEZaOnRAAAMfD:
To clean up records with a transaction ID of AhEZaOnRAAAMfD
data_share -f=cleanup_transaction -trid=AhEZaOnRAAAMfD
2. Push the LOUHOLDER object and synchronize the BOM view revision.
data_share -f=send -item_id=<ITEM_ID> -site=<REMOTE_SITE> -include_bom
-exclude=IMAN_reference -exclude=IMAN_based_on -exclude=IMAN_snapshot
-bvo -bo=PSOccurrence -bs=20 -bvrsync -report=<IMAN_TMP_DIR>/rpt
2. Push the LOUHOLDER object and synchronize the BOM view revision.
data_share -f=send -item_id=<ITEM_ID> -site=<REMOTE_SITE> -include_bom
-exclude=IMAN_reference -exclude=IMAN_based_on -exclude=IMAN_snapshot
-bvo -bo=PSOccurrence -bs=20 -bvrsync -report=<IMAN_TMP_DIR>/rpt
• To send a list of 4GD objects specified in a text file and output a report:
data_share -f=send -filename=my_4GD_list.txt -cof=Cpd0DesignElement
-site=Site1 -low_level -report=rep.txt
• To send a list of 4GD objects specified in a text file and output a report:
data_share -f=send -filename=my_4GD_list.txt -cof=Cpd0DesignElement
-site=Site1 -low_level -report=rep.txt
• To send a list of 4GD objects specified in a text file and output a report:
data_share -f=send -filename=my_4GD_list.txt -cof=Cpd0DesignElement
-site=Site1 -low_level -report=rep.txt
Note
data_sync
Synchronizes copies of objects at remote sites with the latest version of the
object master. It also updates publication records when republishing objects.
In verify mode, the utility checks the existence of exported objects at the
remote sites; if a copy no longer exists at the remote site, the corresponding
import export record is deleted from the owning site.
The behavior of this utility is controlled by the
TC_force_remote_sites_exclude_files preference. If this preference is set to
true, the replica files stored in the remote site file server cache (FSC),
true
otherwise the replica files are store in the remote system volume.
The data_sync utility uses import export records (IXRs) and publication audit
records (PARs), which are attached to the master copy of an object, to
determine whether or not to synchronize a copy or the publication record in
the ODS. These records contain information on when the object was last sent
to a particular site or last published to an ODS. It then compares these
dates with the object's last-modified date and decides whether or not to
synchronize the object. Thus, only those objects that were modified since the
last successful run of the utility are updated.
When updating multiple sites and not all sites operational, the data_sync
utility updates the sites that are available but remembers, using the IXRs and
the PARs, which ones were unavailable so they can be updated next time.
Once the utility determines which objects and sites to synchronize, it uses
the basic Multi-Site Collaboration mechanisms (export, import, IDSM, and ODS)
to accomplish its task. For this reason, Siemens PLM Software recommends that
the data_sync utility be run in batch mode during off hours so that it does
not compete for computing and network resources during business hours.
The utility also supports TC XML transfers for 4th Generation Design (4GD) data.
The 4GD relation data mapping is controlled by the TC_cms_relation_optset_map
preference. You use this preference when you want to control the relations
that are included or excluded when a 4GD object is replicated.
For more information about controlling relations using this preference, see
the Preferences and Environment Variables Reference.
The data_sync utility supports part family templates and members. It also
Role, User
supports organization classes, specifically, Role User, Group
Group, and Person
classes.
Siemens PLM Software recommends the following practices when using the
data_sync utility. The term one at a time means one command line invocation.
This implies that your script for running data_sync consists of several lines
invoking the data_sync utility.
• Synchronize one site at a time and use the default revision selector of
-same_as_last_export. This allows you to use the Smart Sync capability
-same_as_last_export
which synchronizes only the revisions and attachments that the remote user
specified when replicating an item.
• Synchronize one class at a time starting with the largest unit, which is
Item, and down to the smallest units such as Dataset and Form
Item Form.
• Always use the -since switch with the -class switch. This results in
improved memory efficiency because replicated objects that have not been
modified for some time are excluded from the initial search for objects to
be synchronized. Ideally, the date given to the -since switch should be
data_sync. However,
the exact date and time of the last successful run of data_sync
if you are not sure about the date and time, use a date and time that you
know is prior to the last successful run.
• The synchronization process can put a heavy load on the network and the
systems so data_sync should be scheduled during non-busy hours such as
nights and weekends. Typically, you should run the synchronization script
run as a cron job to be started at night.
Note
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
For HTTP enabled sites, remote site operations log on using the default
group for the user supplied with the -u argument. Any value supplied
with the -g argument is ignored.
-pull
Specifies synchronization starts in pull mode, that is, from a replica site.
-class
Specifies the class of objects to be searched to determine what objects need
synchronization. This does not mean that all objects of the given class are
synchronized; only those that were modified since the last time they were
exported to the given site(s) are synchronized. See restrictions 1 and 2.
-filename (fn)
Specifies the name of the input file containing IDs or names of objects to
update. See restriction 1.
-itemKeyFile
Specifies the name of the input file containing the list of item key strings
of the items you want to update. The following listing shows sample content of
a file for updating a list of items:
item_id=export_001
item_id=M2Item1_001,object_name=M2Item_name1,object_type=M2Item1
If the item key file has 4GD object key strings, the corresponding 4GD class
must be supplied using the -classoffile(cof)= argument. The following listing
shows sample content of a file for updating 4GD data:
4gd_id=DE_Export_001
4gd_id=DE00001_ID,object_name=DE00001_Name,object_desc=DE00001_Desc
The 4g_id entry maps to the corresponding unique ID of the 4GD class, for
example:
Class=Cpd0DesignElement, 4gd_id=cpd0_design_element_id
-item_id (item)
Specifies the ID or template of items to update. See restriction 1.
-key
Specifies the item keys of the items to update, the template of the item keys,
or the 4GD object key. It is mutually exclusive with the -item_id argument.
Use the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
Note
500.
If you use the -OnlyVIS argument the -batch_size value defaults to 500
-f
Specifies the function to be performed; define one of the following functions:
sync
Initiates the update process. See restrictions 2 and 4.
republish (repub)
Republishes objects that have been modified since last published. See
restriction 2.
verify (veri)
Note
Siemens PLM Software recommends that you always use the -item_id=*
argument with the verify function. If you use the -class=item
argument with the verify function, it processes only the items that
have been modified after their last export.
When used with the -update argument, deletes the IXRs of objects for which
replicas do not exist at the remote sites.
When used without the -update argument, generates a report. See restriction
2.
The report returns the following verification verdict codes:
0 Object does not exist.
1 Object exists as a master copy.
2 Object exists as a replica.
3 Object was replaced by a POM stub.
status (stat) Displays the status of a given transaction ID.
If the -site argument is given, only status
of the given sites is displayed. If no -site
argument is given, the status returned depends
on whether the command is given at the site
that initiated the checkpointed transaction
or the site is the receiving end of the
transaction. If the command is given at the
initiating site and no -site argument is
given, the status of the local site and all
target sites is returned.
-assert_extinct_ods (aeo)
Deletes all publication audit record (PAR) objects from the local database for
an ODS that no longer exists. This removes any record about objects previously
published to the ODS and makes it possible to delete the published objects at
a later time. Only the -site and -login switches are required. This is valid
only with the -f=verify argument. See restriction 5.
-assert_extinct_site (aes)
Deletes all import export record (IXR) objects from the local database for
a site that no longer exists. This removes any record of objects previously
exported to the site and makes it possible to delete the exported objects at a
later time. Only the -site and -login arguments are required. This is valid
only with the -f=verify argument. See restriction 5.
-replacement_site (rs)
Specifies the name of the site that replaces the site to be extinct. This
argument is valid only with the -assert_extinct_site argument. All objects
owned by the extinct site are redirected to the replacement site.
-stubs_only
Specifies that stubs are processed only when the -replacement_site argument is
specified. This argument is valid only with the -assert_extinct_site argument.
-sync_file_stubs
Processes dataset files excluded from export and updates remote stubs if needed.
This argument is valid only when the -class=ImanFile argument is specified.
-update (upd)
-f=sync,
Performs a database update. Must be given in order for the -f=sync
-f=republish, or -f=verify to occur; otherwise, it only does a dry run and
-f=republish
generates a report. See restriction 4.
-report
Generates a synchronization report. If a file name is not supplied, the report
is displayed in a shell.
-site
Specifies the Teamcenter site to update. This argument can be used multiple
times in the command line to synchronize with multiple name-identified sites.
-exclude_files (exf)
Excludes dataset files. See restriction 6.
-exclude
Excludes the specified relation type. This argument may be given multiple
times and must use the database name (not the display name) of the relation
type. See restriction 6.
-include
Includes the specified relation type. This argument may be given multiple
times and must use the database name (not the display name) of the relation
type. Use this argument to force the inclusion of a relation type that may
have been excluded during the last export.
-exclude_folder_contents (efc)
Excludes the contents of a folder. Intended for use with NX part families
where family members are stored in a folder that is related to the item.
-include_bom (bom)
Synchronizes all components of an assembly. This synchronization includes any
newly added components to the existing assembly. See restriction 6.
-disable_modified_only (dmo)
Disables the default behavior of synchronizing subobjects inside an item only
if they were modified since the last time the item was exported.
Normally, this argument is not used. See restriction 6.
For more information, see Multi-Site Collaboration Guide.
- revision-selector
Valid only if both the -f=sync and -update arguments are specified. Choose one
of the following revision selectors:
-all_revisions
Synchronizes all revisions.
-latest_revision
Synchronizes only the latest revision, regardless of the release status.
This is the default if no revision selector is specified and more than one
site is to be synchronized. If synchronizing only one site, the default
same_as_last_export.
selector is same_as_last_export
-latest_working
Synchronizes only the latest working (unreleased) revision.
-latest_released
Synchronizes only the latest released revision with any release status.
-latest_working_or_any
Synchronizes the latest working revision; if no working revision,
synchronizes the latest released revision of any release status.
-release_status = release-status-type
Synchronizes only the latest released revision with the specified release
status type.
-all_released_revs
Synchronizes all revisions with a release status including in-process
item revisions.
-same_as_last_export
Synchronizes using the options used the last time the item was exported.
This is the default if no revision selector is specified and only one
site is being synchronized. If synchronizing multiple sites, the default
latest_revision.
selector is latest_revision
Note
-include_pfmembers
Identifies the related part family members to be exported when handling part
family templates.
-include_pftemplates
Identifies the related part family template to be exported when handling
part family members.
-pf_bom_treatment
Identifies the part family objects associated with the assemblies to be
exported. The argument must be used in conjunction with the -include_bom
argument. Valid arguments are:
-members
Includes part family member components present in the assembly.
-templates
Includes part family template rather than part family member components.
-all
Includes both the part family member components and templates.
-none
Includes neither the part family member components nor the templates.
-latest_ds_version (ldv)
Synchronizes only the latest version of datasets. See restriction 6.
-force
Synchronizes objects regardless of whether they were modified since the last
time they were exported. See restriction 3.
-since
Synchronizes only those objects modified since the specified date and time,
which must be specified in YYYY-MM-DD:HH:NN format, where YYYY is the year;
MM is the month number from 1 to 12; DD is the day from 1 to 31; HH is the
hour from 0 to 23, and NN is the minute from 0 to 59. HH and NN are optional
and default to zero, which indicates 12 a.m. of the given date. This is
valid only with the -class argument.
-verbose
Displays maximum amount of information when the utility is run in verbose
mode. Typically, nonverbose utility sessions only display error messages. Do
-v.
not abbreviate this argument to -v
-log
Places detailed information in the data_sync.log file. The information
includes the start and ending time for each step performed by the data_sync
utility. Use this argument to analyze the performance of the utility.
-bp
Displays best practices information.
-checkpoint (cp)
Initiates a checkpoint transaction, that is, a transaction that can be
restarted at the point of failing. This argument is valid only when both
-f=sync and -update are specified. If specified without the -update argument,
this argument is ignored.
-f=sync.
Valid only with -f=sync
If a noncheckpoint operation is initiated for multiple target sites and some
target sites are not currently available based on a preliminary availability
check, Teamcenter sends a message to stdout to notify the user about
unavailable sites, removes unavailable sites from the target site list, and
then performs the operation for the available sites.
compress_ind_files (cif)
Specifies compression mode to use to compress files in the export directory
during a checkpoint transaction. If not specified, creates a single large
ZIP file. This argument is valid only with the -checkpoint argument. Valid
values are:
• S
Creates a single large ZIP file.
• I
Creates a ZIP file for each individual file, resulting in multiple ZIP
files.
• N
No files are compressed.
-transaction_id (trid)
Specifies a 14-character transaction ID for a given checkpoint-related
operation or fast sync transaction.
-4gd_id
Specifies a 4GD object identifier or 4GD object pattern. The -class=class-name
argument must be specified with the -4gd_id argument.
The utility maps the -4gd_id argument to the corresponding unique ID of the
4GD class, for example:
Class=Cpd0DesignElement, 4gd_id=cpd0design_element_id
A 4GD partition object and 4GD subset definition objects do not have a unique
4GD class ID. Therefore, using -4gd_id for partition objects or subset
definition objects may result in the update of multiple objects
To export unique partition object use multifield key attributes supplied in
the -key argument, see the -key argument description.
-optionset
Specifies the name of the transfer option set when sending objects using
-low_level argument). Values of the options
low-level TC XML functionality (-low_level
listed in the option set govern the object export. The option set must exist
at the exporting site. If you do not specify, this argument, the utility
uses the MultiSiteOptSet option set.
-de_incl_rlz_bom
Cpd0DesignElement).
Sends the source objects of a design element (Type:Cpd0DesignElement
Cpd0DesignElement You
must specify the -low_level argument and specify a 4GD object using the
-4gd_id, -key
-4gd_id -key, or -itemKeyFile argument.
-workset_incl_relz_de
Cpd0DesignElement)
Sends the source objects of a design element (Cpd0DesignElement
Cpd0DesignElement in a Workset
Cpd0Workset).
(Cpd0Workset
Cpd0Workset You must specify the -low_level argument and specify a 4GD
-4gd_id, -key
object using the -4gd_id -key, or -itemKeyFile argument.
-restart (rs)
Restarts a given transaction at the point of failure.
Valid only with the -f=send function.
-batch_objects (bo)
Specifies a list of comma-separated deferred classes. The list must not
contain spaces.
-batch_file (bof)
Specifies the file name of a text file containing a list of deferred classes.
Each class name is contained on a separate line.
-batch_size (bs)
Specifies the number of objects per batch. A new process is created for each
batch. All workspace objects (not just items) that are synchronized are
considered part of a batch. The default batch size is 2000. The maximum value
you can specify is 99999. If you enter a value greater than 99999, the utility
sets the value of -batch_size to the default.
-deferred_batch_size (dbs)
Specifies the number of objects per batch; a new process is created per batch.
The default value is 2000. This value must be a positive integer. Use this
argument to process thousands of objects to avoid memory and disk shortage
problems.
The following classes are supported for deferred objects:
• Dataset
• Folder
• Form
• ImanRelation
• MEAppearancePathNode
• NamedVariantExpression
• PSOccurrence
• VariantExpression
• VariantExpressionBlock
-h
Displays help for this utility.
Environment
As specified in the Manually configuring your environment for Teamcenter
utilities.
Files
As specified in the Log files produced by Teamcenter.
Restrictions
-class, -filename
1. One of the following arguments must be supplied: -class -filename, or
-item_id.
-item_id
-f=sync, -republish
2. One of the following arguments must be supplied: -f=sync -republish,
-f=verify.
or -f=verify
3. The -force argument can only be used along with the -filename or the
-item_id argument. It does not function when used in combination with the
-f=verify argument.
-exclude_files, -exclude=
6. The -exclude_files -exclude=, -include_bom
-include_bom, -disable_modified_only and
-latest_ds_version options can be used if both the -f=sync and -update
arguments are supplied.
Item, ItemRevision
7. The -classoffile argument currently supports only the Item ItemRevision,
Dataset, Form
Dataset Form, Folder
Folder, Role
Role, User
User, Group
Group, and Person classes.
8. The -include and -update arguments must be supplied with the -OnlyVIS
switch.
Examples
Note
Note
-same_as_last_export, is used.
The default revision selector, -same_as_last_export
10. To destroy all the publication records to a known extinct ODS site:
data_sync -u=infodba -p=infodba -site=XSite -f=verify
-assert_extinct_ods
The mylist file has item revision names in the following format: item123/A
The mylist file has dataset names in the following format: dataset123
14. To force synchronize a list of items specified in a text file in pull mode:
data_sync -pull -filename=”/myhome/itemlist.txt” -force
-update -report=report.lst
17. To check if items copied to the Design_Center site still exist and delete
the IXR from the master if a copy is no longer there, enter the following
command on a single line:
data_sync -item_id=* -site=Design_Center -f=verify -update
18. To delete the IXRs of objects whose replicas do not exist at the remote
sites, enter the following command on a single line:
data_sync -item_id=* -site=Site1 -f=verify -update -report=rep.lst
19. To generate a report of the IXRs, enter the following command on a single
line:
data_sync -item_id=* -site=Site1 -f=verify -report=rep.lst
Both this and the previous example generate reports listing all objects
including those that are no longer at the remote site.
20. To synchronize all items copied to a site and output a report to a file
with newly added components to existing assembly:
data_sync -class=Item -site=Site1 -f=sync -update
-include_bom -report=report.rpt
22. To synchronize all imanfile objects copied to a site and output a report to
a file:
data_sync -class=imanfile -site=Site1 -f=sync -update -report=report.lst
25. To force synchronization of files and initiate a checkpoint for three sites:
data_sync -f=sync -update -checkpoint -item_id=item123
-site=Site2 -site=Site3 -site=Site4
28. To synchronize all 4th Generation Design (4GD) objects copied to a site
and output report to a file:
data_sync -class=Cpd0DesignElement -site=Site1
-sync -update -report=report.lst
29. To synchronize specific 4GD objects copied to a site and output report to
a file:
data_sync -4gd_id=DE000001 -class=Cpd0DesignElement
-site=Site1 -sync -update -report=report.lst
30. To clean up fast sync transactions prior to specific last process date,
list the available transactions to get the last process dates:
data_sync -low_level -lt
Note
Important
notes
1. When synchronizing items, all item revisions, BOM view revisions,
BOM views, forms, and datasets associated with the item will also be
synchronized. However, in some cases the item itself is not modified, so
the last modification date is not updated and, therefore, cannot be used
as the sole basis for synchronization. In most cases, it is necessary to
specify all classes associated with an item to guarantee that complete
synchronization is accomplished. This means that the command to run the
data_sync utility should include several class switches, for example:
data_sync -class=Item -class=ItemRevision -class=PSBOMViewRevision
Note
8. Siemens PLM Software recommends that you synchronize only one site at a time
rather than synchronizing multiple sites in a single run of the data_sync
utility. This allows you to use the -same_as_last_export revision selector
that uses the same import/export options used to replicate the item. If
you must synchronize multiple sites, create a script that loops through
sites but only invokes the data_sync utility with only one site at a time.
Using folders
with the
data_sync
utility
Folders can be used with the data_sync utility, as shown below:
data_sync -filename=/tmp/folderlist -classoffile=Folder...
If the content of the folder has changed since the last export, if references
have been added or removed, the data_sync utility updates the remote copy to
reflect the current state of the folder.
If no references have been added or removed from a folder since the last
export, it is not considered to have been modified. Therefore, if the objects
referenced in the folder have changed and need to be updated at the remote
site using the -classoffile=Folder argument, use the -force argument.
Generating
reports
This example shows how to generate a report called data_sync.rpt against
the Detroit site:
Enter the following command on a single line:
data_sync -class=Item -verify —report=data_sync.rpt -site="Detroit"
diff_xml
bomwriter-generated output files with the grdvua_on option specified
Uses the bomwriter
at two days, compares the PLM XML files, and generates a difference XML file.
This difference XML file contains all of the changes performed on the assembly
structure. This XML file is then used to update the audit log file dataset.
Syntax
diff_xml -u= user-name {-p=
-p=password | -pf=password-file} [-g=
-g=group]
-item=item-id -rev=revision-id -key=key-id [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-item
Specifies the item ID of the top node of the assembly structure.
-rev
Specifies the revision ID of the top node of the assembly structure.
-key
Specifies the key of the object. The -key argument can be used instead of
the -item argument.
To find the key of an object, use the get_key_string utility.
For more information, see the Business Modeler IDE Guide.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
Open the Teamcenter menu shell with the database connection variables set and
then execute the following command:
diff_xml -u=infodba -p=infodba -g=dba -item=000125 -rev=001
distributed_execute
Executes the item_report utility, both locally and remotely, and generates
reports.
You can specify any command line parameters required for the item_report
utility on the distributed_execute command line, and those arguments are
passed to the item_report utility.
Note
This utility does not support individual item ID input. You must use the
-itemidsfile= file argument.
Syntax
-u=user-id {-p=
distributed_execute [-u= -p=password | -pf=password-file} -g=group]
-distributed_func= function -itemidsfile= datafile
-distributed_sites= site1,site2,site3 -outfile= file-name
-delimiter=delimiter-character] [-h
[-delimiter= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-distributed_func
Specifies one of the following functions:
traverse_items Traverse BOM on all specified sites and produce union
of all traversed IDs, argument maps to the item_report
-traverseditemfile.
utility argument -traverseditemfile
report Generates a distributed IDSM-based report based on list of
items input from an ID file, argument maps to item_report
utility, generate the reports, and merger reports.
-itemidsfile
Specifies a data file containing comma-separated values (CSVs) or carriage
return/line feed separated item IDs. This argument is required.
-outfile
Specifies the output file. This argument is required.
-distributed_sites
Specifies a list of sites, both local and remote, on which this command is
executed. This argument is required.
-delimiter
Specifies a delimiter character for the output file. The default value is
the vertical bar (||). Ensure the delimiter in the site-based file and merge
file input match.
-h
Displays help for this utility.
Restrictions
None.
Examples
• To execute item_report to generate a list of traversed objects for three
sites (user, password, and group arguments are not shown in the example):
distributed_execute -distributed_sites=Site1,Site2,Site3
-outfile=trav.out -distributed_func=traverse_items -itemidsfile=item_id.txt
dsa_util
Distributes system administration data, such as users and groups, from one
site to another. When adding a new site, this allows you to enter the site
information of all sites in the network so the new site can exchange data
with them.
Caution
Note
This utility should be used only for the initial migration of system
objects. Siemens PLM Software recommends that you do not use this
utility to maintain system objects.
Syntax
-u=user-id {-p=
dsa_util [-u= -p=password | -pf=password-file} -g=group]
-f={distribute
-f= distribute | export | import | list_classes | list_sites | check_sites |
-level={FATAL
set_logging_level -level= FATAL | ERROR | WARNING | INFO | DEBUG |
OFF}}
TRACE | OFF
-site=remote-site1-name -site=remote-site2-name...]
[-site=
-class=class1-name -class=class2-name...]
[-class=
-filename=file-path-name]
[-filename=
[-report= report-file-name]
-report=
-email=email-address]
[-email=
[--attr1-name=attr1-value -attr2-name=attr2-value]
[--attr-name-listfile= file-path-name]
-h= topics | topic-name} | -h [-f=
-h={topics
[-h= -f=function-name | -class=class-name]]
Arguments
Note
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
Caution
For HTTP enabled sites, remote site operations log on using the default
group for the user supplied with the -u argument. Any value supplied
with the -g argument is ignored.
-f
Identifies the function to perform. Must be one of the following functions:
distribute (dist) Sends system objects to the given sites.
export (exp) Outputs system object information to the text file
identified by the -filename argument. The output file
can be edited and used with the distribute function in
conjunction with the -filename argument. Equivalent to
exporting system objects.
import (imp) Imports system object information from the text file
identified by the -filename argument and updates system
objects in the local database. Equivalent to importing
system objects.
list_classes (lc) Lists the name of all classes supported by this utility.
list_sites (ls) Lists all the sites that are defined in the local database.
check_sites (cs) Checks the availability of all sites defined in the local
database. A site is considered available for Distributed
System Administration purposes if its IDSM server is ready.
• ERROR
Logs other run-time errors or unexpected conditions.
• WARNING
Logs run-time situations that are undesirable or unexpected, such as use
of deprecated APIs.
• INFO
Logs informational messages that highlight the progress of the application
at a coarse-grained level, such as startup and shutdown events.
• DEBUG
Logs detailed information on the flow through the system. This information
is useful for debugging an application.
• TRACE
Logs the most detailed information on system events and operation.
• OFF
Turns off logging.
-filename (fn)
Specifies the path name of a text file to be used as input or output of system
object information. If only the file name is given, the file is assumed to
be in the user's current directory.
To prevent the system from appending the .plmxml file extension to the
specified file name, Siemens PLM Software recommends that you specify a file
name using the .xml file extension.
-report (rep)
Specifies the path name of a text file to which the local report is written.
-email (em)
Indicates the e-mail address to which the remote report is sent. It can be a
single address or multiple addresses separated by a semicolon (;;).
-attr-name=attr-value
Specifies the attribute name and value pair identifying a specific instance
of the given system class. This argument can be given multiple times in the
command line if necessary to locate a specific instance of a given class.
-attr-name_listfile
Specifies the path name of the text file containing the IDs or names of
instances of the given class. Use to process multiple instances of a given
class.
-h=topics
Displays a list of topics for which detailed help information is available.
-h=topic-name
Displays help information for a specific topic.
-h -f=function-name
Displays detailed help information for the given function.
-h -class=class-name
Displays class-specific help information for the given class. The class name
must be one of the classes listed by the list_classes function. If the class
ALL_CLASSES, displays help information for all supported classes.
name is set to ALL_CLASSES
-h
Displays help information on basic usage.
Return Values
Return value 0
upon success
Return value >1
upon failure
Restrictions
1. To use this utility, you must be a user with system administration
privileges or be granted authorization by a user with system administration
privileges.
2. Do not use this utility to share organization objects between sites if the
same organization objects are shared through a global organization.
3. When exporting the user object, this utility does not export the license
level of the user. The license level of the user is set to the lowest
available license level at the importing site. System administrators at
the importing site must manually set the license level and/or the license
bundle of each user.
4. The dsa_util utility does not recognize externally managed users, groups,
roles, persons, and group members with a datasource attribute value greater
than 0 and convert them to remotely managed (for example, managed by an
LDAP external directory at a remote site). Because the dsa_util utility
is the only way user constructs can be converted to remotely managed,
no user construct objects in the Organization user interface appear as
remotely managed.
5. The set_logging_level function and -level argument are only for RPC-based
Multi-Site environments. Use the JMX console to set the logging levels for
the loggers in an HTTP (four-tier) Multi-Site environment.
6. To use this argument, you must add the source site (site where the utility
is run) to the IDSM_dsa_sites_permitted_to_push_admin_data preference
value at the remote site.
Examples
203456177, enter
To set the Multi-Site logging level to DEBUG at a remote site 203456177
the following command on a single line:
dsa_util –u=infodba –p=infodba –f= set_logging_level -site=203456177 level=DEBUG
ensure_site_consistency
Allows users to perform corrective actions if the site ownership transaction
is interrupted due to a system or network crash or a user-initiated process
termination (such as the Windows Task Manager). In cases where legitimate error
conditions are encountered (such as lack of transfer privilege or duplicate
item IDs), there is no requirement to perform any corrective action; Teamcenter
restores the data to consistent states under most non-crash conditions.
Note
This utility should be run only at the exporting site; never run it at
the importing site. The flag that marks an object as requiring this
utility is always at the exporting site.
Syntax
-u=user-id {-p=
ensure_site_consistency [-u= -p=password | -pf=password-file} -g=group]
-f=recovery | report | list_all_rec | clean_all_rec
-item_id=item-id ] | [-key=
{ [-item_id= -key= {keyAttr1=keyVal1 [,keyAttr2=keyVal2],…[,keyAttrN=keyValN]
-class=class-name] ] | [-folder=
[-class= -folder=folder-name] | [-filename=
-filename=file-name] |
-itemKeyFile=file-name] | [-search
[-itemKeyFile= -search] -4gd_id=object-id -class=4gd-class-name] }
-search | [-4gd_id=
-report=file-name]
[-report=
-mode={sst
-mode= sst | gms
[-mode= gms} ]
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
IXR, ITXR
Inconsistent local/replica IXR ITXR, and PAR records occur in the
following situations:
• IXR,
The object is local and the referencing auxiliary objects (IXR ITXR,
IXR ITXR
PAR) are replicas.
and PAR
• IXR,
The object is replica and the referencing auxiliary objects (IXR
IXR
ITXR, and PAR
ITXR PAR) are replicas.
• IXR,
The object is replica and the referencing auxiliary objects (IXR
IXR
ITXR, and PAR
ITXR PAR) are replicas.
-folder
Specifies a folder that contains items on which to perform corrective action.
The use of a folder is intended for Workspace objects that do not have unique
IDs, for example, datasets and forms. This is useful for failed remote checkins
of multiple objects where many of the remotely checked-out objects do not have
unique IDs, for example, datasets, forms, BVRs, and so forth.
-filename
Specifies a file name that contains a list of items on which to perform
corrective action. The file should only contain item IDs. This argument is
-folder, -item_id
mutually exclusive with the -folder -item_id, and -search arguments.
-class (cl)
Specifies the Teamcenter class of the object specified by the -name or -4gd_id
argument. This argument is valid only with the -name or, when the -low_level
Item.
argument is specified, with the -4gd_id argument. The default class is Item
Role, User
For organization objects, this argument accepts Role User, Group
Group, and Person
classes.
-key
Specifies the keys of the objects on which to perform corrective action. Use
the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
• When used with the recovery function, the utility performs corrective
actions on the objects that are found as requiring corrective actions.
-4gd_id
Specifies a 4GD object identifier or 4GD object pattern. The -class=class-name
argument must be specified with the -4gd_id argument.
The utility maps the -4gd_id argument to the corresponding unique ID of the
4GD class, for example:
Class=Cpd0DesignElement, 4gd_id=cpd0design_element_id
A 4GD partition object and 4GD subset definition objects do not have a unique
4GD class ID. Therefore, using -4gd_id for partition objects or subset
definition objects may result corrective action on multiple objects.
To export unique partition objects, use multifield key attributes supplied
in the -key argument. See Examples.
-item_id
Specifies the item ID.
• When used with the report function, the utility generates a report on the
item specified by item-ID.
• When used with the recovery function, the utility performs corrective
action on the item specified by item-ID only if the specified item is
flagged as requiring corrective actions.
-report
Specifies the output file path for generating the report. Use this argument
with either the report function or the recovery function.
• When used with the report function, the report lists the objects that
require corrective action.
• When used with the recovery function, the report lists the objects where
corrective action was taken.
-mode
Specifies the recovery method type of transfer failures that you want to
recover or the type of report to generate when used with the -report argument.
If you do not specify this argument, the utility uses standard Multi-Site
Collaboration transfer failures or generates both a Synchronous Site Transfer
(SST) and Global Services (GMS) report when used with the -report argument.
You can specify one of the following valid values:
• sst
When used with the recovery function, sst recovers SST transaction failures.
When used with the report argument, the report lists the SST transaction
objects that require corrective action.
• gms
When used with the recovery function, gms recovers GMS transaction failures.
When used with the report argument, the report lists the GMS transaction
objects that require corrective action.
-h
Displays help for this utility.
Environment
As specified in the Manually configuring your environment for Teamcenter
utilities.
Files
As specified in the Log files produced by Teamcenter.
Restrictions
None.
Examples
• Generate a report on all the objects that are flagged as requiring
corrective actions:
ensure_site_consistency -u=infodba -p=infodba -g=dba
-f=report -search -report=recovery_candidates.txt
• Perform corrective actions on all the objects that are flagged as requiring
corrective actions:
ensure_site_consistency -u=infodba -p=infodba -g=dba
-f=recovery -search -report=recovery_fixup.txt
The item_id_list.txt file should contain a list of item IDs, one item
ID per line.
export_recovery
Recovers and restores exported objects to your database under certain
conditions. Occasionally, when you export an object and transfer ownership the
object may not be successfully imported at the destination site. This places
the object in an undefined state where no one has ownership. The preferred
method of correcting this situation is to have the destination site complete
the import/export transaction by importing the object into the database from
the importing site’s TC_transfer_area (using interactive object import).
However, if this is not possible, the export_recovery utility is used to
restore the object to the exporting database from the exporting site’s
TC_transfer_area using the min or full mode (effectively canceling the
export/transfer ownership transaction). If no data is available at either
site, recovery can be attempted by running the automode at the exporting site
that was the last known owning site.
Use the export_recovery utility when an export with transfer of site ownership
fails, resulting in objects within an item having inconsistent site ownership.
The mode of recovery to use depends on whether there is a valid export
directory. The directory must include the objects.meta file.
Siemens PLM Software recommends the following order for attempting export
recovery procedures; you should try the succeeding procedure only if you cannot
perform the previous one or if the previous one fails to restore site ownership:
• If a valid export directory exists (most likely in the TC_transfer_area
of the exporting or importing site), use either full or min mode while
specifying the valid export directory with the -dir= switch. If you attempt
to recover at the exporting site, use min mode; if you attempt to recover
at the importing site, use full mode.
• If a valid export directory does not exist, you must attempt recovery from
a valid database copy that may be a replica or one with inconsistent site
ownership. Use export_recovery in auto mode. Specify the -include_bom
switch if appropriate. Specify -exclude and/or -include switches, if
desired.
• If the auto mode fails to restore site ownership, perform the manual
export recovery procedure:
1. Define the TC_EXPORT_COPY=TRUE environment variable.
-key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]]
| [-key=
-folder=folder-name] | [-filename=
| [-folder= -filename=file-name]
-itemKeyFile=file-name] | [-dir=
| [-itemKeyFile= -dir=directory]
-report=report-file] [-remote_site=
[-report= -remote_site=last-transfer-site] [-include_bom]
-include_bom]
-real_owning_site= desired-owning-site]
[-real_owning_site=
-exclude=relation-type1 -exclude= relation-type2 ...]
[-exclude=
-include=relation-type3 -include= relation-type4 ...]
[-include=
-ignore_am_rules]
[-ignore_am_rules -update_lmd]
-ignore_am_rules [-update_lmd -bp]
-update_lmd [-bp -h]
-bp [-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-mode
Specifies the basic mode in which the utility operates. The value of this
argument can be one of the following:
full
Restores objects from the export metafile, imports them in to your database
and restores ownership to your site.
min
Restores ownership to your site without reimporting data from the metafile.
Valid only if the metafile was generated with transfer of ownership.
auto
Restores ownership on the specified item without reimporting. You
must specify the -itemid argument and either the -remote_site or
-real_owning_site arguments when using this mode.
find
Searches for items with inconsistent site ownership and generates a report.
-dir
Defines the path of the directory containing the exported metafile and the
data files. Required only with the -mode=full and -mode=min arguments.
-item_id
Specifies the ID of the item to process. Wildcards are allowed.
-folder
Defines the name of the Teamcenter folder containing the list of items to
process.
-filename
Defines the full path of the file that contains the list of items to process.
-key
Specifies the keys of the items to process. Use the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
-remote_site
Defines the last site for which a transfer of ownership was attempted. This
argument is valid only with the auto mode.
-report
Specifies the full path of the report file. Valid only with find mode.
-real_owning_site
Changes the owning site of specified objects to the site designated. Valid
only with the -mode=auto argument.
-include_bom
Includes assembly components, if any exist.
-exclude
Excludes the specified relation type and may be given multiple times. The
database name (not display name) of the relation type must be used.
-include
Includes the specified relation type and may be given multiple times. The
database name (not the display name) of the relation type must be used. Use
this argument to force the inclusion of a relation type that is not specified
by your TC_relation_required_on_export preference.
-ignore_am_rules
Ignores AM rules for recovery purposes.
-update_lmd
Updates the last modified user and date. Valid only with the -mode=auto
argument.
-bp
Displays best practices information.
-h
Displays help for this utility.
Environment
As specified in the Manually configuring your environment for Teamcenter
utilities.
Files
As specified in the Log files produced by Teamcenter.
Restrictions
• To use this utility, you must be a user with system administration
privileges or be granted authorization by a user with system administration
privileges.
• For the -mode=auto and -mode=find options, exactly one object selection
-itemid,
filter (-itemid -filename, or -folder
-itemid -filename -folder) must be specified.
Examples
In each of the following examples, the -u=user-id -p=password and -g=group
arguments are assumed:
• MyCorruptItem:
To restore ownership on an item with the ID MyCorruptItem
export_recovery -mode=auto -item_id=MyCorruptItem
-remote_site=Manufacturing
• xyz)
To make an item (xyz
xyz in the local site a replica that is owned by another
Site2):
site (Site2
Site2
export_recovery -mode=auto -item_id=xyz -real_owning_site=Site2
idsminetd
Serves as the Integrated Distributed Services Manager (IDSM) launching program
on UNIX systems. Located in the $TC_ROOT/bin directory, it is run at system
startup and services all inbound requests for a new IDSM.
For more information on IDSM, see the Multi-Site Collaboration Guide.
Syntax
-u=user-id {-p=
idsminetd [-u= -p=tcp-port-number | -pf=password-file} -g=group]
-d]
[-d -t]
-d [-t -r=idsm-start-script]
-t [-r=
-n=RPC-program-number]
[-n=
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the port number on which the IDSM should run. Default is the
system-assigned port number.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-d
Specifies debug mode for stand-alone testing. The server runs in the
foreground.
-t
Enhances logging.
-r
Specifies the IDSM start script.
-n
Specifies the RPC program number the IDSM should use. The default RPC program
number is used if this argument is omitted.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
The selected port number must be in the range 1025–65535 and must not conflict
with other system services.
Examples
Under normal circumstances, this utility runs only at system startup. The
following is an example of running a debug session:
idsminetd -d -t -p=33333 -r=/tmp/myscript
import_file
Imports files into the Teamcenter database according to a set of user-specified
arguments. These arguments supply user identification information, dataset
information, and (optionally) item information to be associated with the
imported file. The arguments may be specified on the command line to import a
single data file or in a file to import multiple data files (bulk import).
Depending on the arguments, each data file is copied (an ImanFile object is
created), a dataset is created (or modified), and if specified, an item is
created or modified to contain the dataset. In the absence of a specified
item, the dataset is placed in the user's Newstuff folder.
Note
The import_file utility does not support the creation of custom item
types.
Syntax
-u=user-id {-p=
import_file [-u= -p=password | -pf=password-file} -g=group]
-f=file-name | -i=file-name [-vb
-vb] -log=file-name] -type=datasettype -d=dataset-name
-vb [-log=
-ref=named-reference [-de=
-de={n -item=item-id | -itemkey= key-id]
-de= n | e | a | r}] [-item=
-itemRevUid=item-revision-uid]
[-itemRevUid=
-relationType= relation-type] [-use_ds_attached_to_rev_only
[-relationType= -use_ds_attached_to_rev_only]
-use_ds_attached_to_rev_only
-revision=item-rev-num] [-ie=
[-revision= -ie={n -desc=string]
-ie= n | y}] [-desc=
-v=volume-name] [-h
[-v= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-f
Imports a single file into Teamcenter. The full path must be provided if the
file does not reside in the current working directory. The -f and -i arguments
are mutually exclusive. See example 1.
-i
Imports multiple files into Teamcenter using a specified import file. The full
path must be provided if the file does not reside in the current working
directory. The -f and -i arguments are mutually exclusive. See example 2.
-vb
Runs utility in verbose mode. Displays maximum amount of information.
Nonverbose sessions only display error messages.
-log
Creates a log of items and datasets created.
-type
Defines the dataset type in Teamcenter, for example, TEXT or UGPART datasets.
-d
Specifies the name of the dataset into which the file is imported.
-ref
Specifies the type of named reference associated with the file. The value
specified by this argument may or may not be identical to the value specified
by the -type argument.
For example, TEXT or UGPART type datasets have named references of TEXT and
UGPART, respectively. However, DirectModel type datasets have a JTPART named
UGPART
reference. Each dataset type defines one or more named references to be
associated with it. See restriction #2.
For more information, see the My Teamcenter Guide.
-de
Indicates that a dataset exists. Used when a dataset of the same name already
exists.
=n
Specifies that a new dataset be added even if one with the same name exists.
If it does exist, it is added to the same item folder. If it does not
exist, it is placed in the new item folder or the user's Newstuff folder.
=e
Specifies that the dataset should be added if it already exists and that
this dataset type supports multiple instances of the same dataset.
=a
Specifies that the imported file be added as a named reference to the
existing dataset. When this is done, a new dataset version that contains
the additional imported named reference file is created.
=r
Specifies that a new dataset revision be created and the existing named
reference be replaced with the new one. This option generates an error
if the dataset has no existing named reference.
-item
Specifies the name of the item containing the dataset that references the
imported file.
-itemkey
Specifies the key of the object. You can use the -item argument or the
-itemkey argument.
To find the key of an object, use the get_key_string utility.
For more information, see the Business Modeler IDE Guide.
-itemRevUid
Specifies the 14 character UID string of the item revision object where the
file and dataset are to be attached.
-relationType
Specifies a relation to use when the IMAN_specification relation is
not appropriate. If the -relationType argument is not specified, the
IMAN_specification relation is used.
-use_ds_attached_to_rev_only
Specifies a dataset based on its name and type, but it considers datasets
attached to the specified item and item revision only. The item and item
revision are specified by the -item and -revision parameters, respectively.
This prevents the utility from referring to datasets with the same name and
type but that are unattached or are attached to another item or revision.
The -use_ds_attached_to_rev_only parameter is particularly useful when used
along with the de=r argument (that is, if you want to revise the existing
dataset instead of creating a new one).
-revision
Specifies the item revision number and revision ID. See restriction #3.
-ie
Specifies behavior if the item already exists.
=n
Specifies that the dataset will not be added if the item already exists.
=y
Specifies that the dataset may be added if the item already exists. If the
item exists, but the item revision does not, an item revision is created.
-desc
Specifies a user-defined text description of an item that is created by the
import function. If the import_file utility is creating a new revision of an
existing item, this is the description of the item revision.
-v
Specifies the full path of the Teamcenter volume where the imported file
is placed.
Environment
As specified in the Manually configuring your environment for Teamcenter
utilities.
Files
As specified in the Log files produced by Teamcenter.
Restrictions
1. When importing a file, the file name cannot be longer than 31 characters.
2. To create a dataset in Teamcenter, the user must specify the dataset type
and the named reference.
3. When importing a file as a dataset, you must specify the named reference
using the -ref argument.
4. When importing a file into an item or item revision, you must specify
the revision; otherwise, an error message displays indicating a missing
revision.
Examples
• bike.dat, into Teamcenter as a
To import a single operating system file, bike.dat
my_bike_dataset, enter the following on a single line:
UGPART dataset named my_bike_dataset
$TC_ROOT/bin/import_file -user=user-id -p=password -g=group -f=bike.dat
-type=UGPART -d=my_bike_dataset -ref=UGPART
• Run the import_file utility using the input file from example 2, entering
the following command on a single line:
$TC_ROOT/bin/import_file -user=user-id -password=password -group=group -i=input-file
item_export
Exports a single item or multiple items in batch mode. It is the
companion to the item_import utility. This utility supports part family
templates and members and works with the TC_relation_required_on_export and
TC_relation_required_on_transfer preferences.
Syntax
-u=user-id {-p=
item_export [-u= -p=password | -pf=password-file} -g=group]
-dir=directory
-item=item-id | -keykey-id [-rev=
{-item= -rev=revision-selector] | -filename= input-file
| -itemKeyFile= file-name}
-owning_site=site-name | -target_site= site-name1, site-name2, ...}
{-owning_site=
-exclude=relation-type1 -exclude= relation-type2...]
[-exclude=
-reason=export-reason] [-latest_ds_version
[-reason= -latest_ds_version] -include_bom]
-latest_ds_version [-include_bom
-include_bom
-batch_objects= list-of-deferred-classes]
[-batch_objects=
-batch_file=file-name-listing-deferred-classes]
[-batch_file=
-deferred_batch_size= batch-size-for-deferred-objects]
[-deferred_batch_size=
-preview]
[-preview -report=file-name] [-continue_on_error
-preview [-report= -continue_on_error]
-continue_on_error
-xfr_top_lvl_only]
[-xfr_top_lvl_only -xfr_top_asm_only]
-xfr_top_lvl_only [-xfr_top_asm_only -xcl_files]
-xfr_top_asm_only [-xcl_files
-xcl_files
-status=release-status] [-exclude_folder_contents
[-status= -exclude_folder_contents]
-exclude_folder_contents
-classoffile=class-name] [-separator=
[-classoffile= -separator=separator-character]
-dont_exclude_protected]
[-dont_exclude_protected -email=email-address] [-script=
-dont_exclude_protected [-email= -script=script-name]
[revision-selector] [-include_bc
-include_bc] -include_supercedures]
-include_bc [-include_supercedures
-include_supercedures [-v-v] -h]
-v [-h
-h
Arguments
Note
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-dir
Specifies the full path of the directory where the metafile and data files
are stored.
-item
Specifies the ID of the item to be exported. Valid only if no input file
is specified using the -i argument.
-key
Specifies the key of the object. You can use the -item argument or the -key
argument.
To find the key of an object, use the get_key_string utility.
For more information, see the Business Modeler IDE Guide.
-rev
Identifies the revision to be exported. This can be the revision ID or one of
the following keywords:
LATEST
LATEST_WORKING
LATEST_RELEASED
LATEST_WORKING_OR_RELEASED
USE_STATUS
If the USE_STATUS keyword is given, you must specify a release status using
the -status argument. This is valid only when you are not transferring site
ownership.
-i argument), the revision keyword is used for every
If used with an input file (-i
item in the input file. Keywords cannot be specified using the command line;
however, you can use revision selectors at the command line as discussed below.
Note
-filename (fn)
Specifies the name of an input file that contains the list of item IDs to
be exported.
The format of the text file must contain the -item= prefix to each item ID.
002259, 002260
For example, to export item IDs 002259 002260, and 002261
002261, the input file
contains the following entries:
-item=002259
-item=002260
-item=002261
Note
-keyFileName
Specifies the name of the input file containing the keys to be exported.
The file format is:
-key = [keyAttr1=keyVal1][keyAttr2=keyVal2]…
-key =[keyAttr1=keyVal1][keyAttr2=keyVal2]…
-key =[keyAttr1=keyVal1][keyAttr2=’keyVal2’]…
-classoffile (cof)
Specifies the class of objects contained in the input file. If no class is
Item. Valid only with the -filename argument.
specified, the default class is Item
-separator (sep)
Specifies the character to separate the item and revision IDs in the file.
The default is /.
-target_site (ts)
Specifies the export target site or sites. If more than one site is specified,
sites must be separated by a comma and the entire string must be enclosed in
quotes. Either the -target_site or -owning_site argument is required.
-owning_site (os)
Specifies the site to which ownership is transferred. Either the -target_site
or -owning_site argument is required.
-exclude (exc)
Specifies the relation type to be excluded. This argument may be given multiple
times, and the database name (not the display name) of the relation type must
be specified. You cannot exclude the IMAN_master_form and TC_ic_intent_rtype
relation types with or without ownership transfer. Also, you cannot exclude
the IMAN_RES_audit with ownership transfer.
-exclude_folder_contents (efc)
Excludes the contents of a folder. Intended for use with NX Part families
where family members are stored in a folder that is attached to the item.
-dont_exclude_protected (dxp)
Does not exclude export-protected objects. If set, any export-protected object
within an item prevents the export of the entire item.
-reason (rea)
Specifies the reason for exporting to sites. Up to 240 characters.
-latest_ds_version (ldv)
Exports only the latest version of datasets; default is to export all versions.
Valid only when site ownership is not being transferred.
-include_bom (bom)
Exports all components if the given item is an assembly.
-preview (pre)
Performs an export dry run and generates a report to the file specified by
the -report argument. If the -report argument is not specified, the report is
output to the screen.
-report (rep)
Outputs preview or completion reports to the specified file. If no report file
name is specified, the report is output to the screen.
-continue_on_error (con)
Continues the export operation even if errors are detected on optional objects.
Optional objects are attachments other than requirement, specification, or
master form objects.
-xfr_top_lvl_only
Only transfers ownership on top-level items specified in the input file.
-xfr_top_asm_only
Transfers ownership only on the top-level assembly items, as specified in
the input.
-xcl_files
Excludes export of files in datasets.
-include_pfmembers
Identifies the related part family members to be exported when handling part
family templates.
-include_pftemplates
Identifies the related part family template to be exported when handling
part family members.
-pf_bom_treatment
Identifies the part family objects associated with the assemblies to be
exported. The argument must be used in conjunction with the -include_bom
argument. Valid options are:
-members
Includes part family member components present in the assembly.
-templates
Includes part family template rather than part family member components.
-all
Includes both the part family member components and templates.
-none
Includes neither the part family member components nor the templates.
-status (stat)
Specifies the release status type to use for selecting the item revision to
be exported.
-include_bc
Exports the change revision along with the BOMChange objects associated with
the affected assemblies of the change revision.
-include_supercedures
Exports the change revision along with the supercedures associated with the
BOMChange objects.
-email
Specifies the e-mail address to which the export report is sent.
The default address is stored in the Teamcenter user account.
-script
Specifies the name of the script in the TC_BIN directory that is executed after a
successful export. If a script is already defined by the TC_post_export_script
preference, the specified script overrides the preference entry.
For more information, see the Preferences and Environment Variables Reference.
-revision_selector
Determines which item revision is exported with the item. The valid selectors
are as follows:
latest_revision (lt) Exports the latest revision only,
regardless of whether it is a working or
released revision.
latest_working (lw) Exports the latest working revision
only.
latest_released (lr) Exports the latest released revision
only with any release status.
latest_working_or_any (lwoa) Exports the latest working revision. If
no working revision exists, it exports
the latest released revision with any
release status.
status (stat) Specifies the release status to be
exported.
If no revision selector is given, all revisions are exported.
Note
Revision selectors should be capitalized only when used with the -rev=
switch and should be in lower case when used as a switch.
-v
Runs utility in verbose mode to display maximum amount of information.
Typically, nonverbose utility sessions only display error messages.
-batch_objects (bo)
Specifies a list of comma-separated deferred classes. If you use this argument
with the preview argument, only nondeferred objects with the number of deferred
objects appear in the report.
-batch_file (bof)
Specifies the file name of a text file containing a list of deferred classes.
-deferred_batch_size (dbs)
Specifies the number of objects per batch; a new process is created per batch.
1000. This value must be a positive integer. Use this
The default value is 1000
argument to process thousands of objects to avoid memory and disk shortage
problems.
The following classes are supported for deferred objects:
• Dataset
• Folder
• Form
• ImanRelation
• MEAppearancePathNode
• NamedVariantExpression
• PSOccurrence
• VariantExpression
• VariantExpressionBlock
-h
Displays help for this utility.
Environment
As specified in the Manually configuring your environment for Teamcenter
utilities.
Files
As specified in the Log files produced by Teamcenter.
Restrictions
1. The -item argument is mutually exclusive with the -i and -filename
arguments.
Examples
To restart a checkpoint transaction that failed during import:
item_export -transaction_id=AjEZaOnRAAAFfD -restart
item_import
Imports multiple items (in batch mode) into the Teamcenter database. It is
the companion to the item_export utility. This utility supports part family
templates and members.
Syntax
-u=user-id {-p=
item_import [-u= -p=password | -pf=password-file} -g=group]
-dir=directory
-folder=folder-name] [-preview]
[-folder= -report=file-name] [-filename=
-preview] [-report= -filename=file-name]
-classoffile=class-name] [-list_metafile
[-classoffile= -list_metafile] -include_pfmembers= part-family-members]
-list_metafile [-include_pfmembers=
-include_pftemplate= part-family-templates]
[-include_pftemplate=
-part_family_bom_treatment={members
-part_family_bom_treatment={ members | templates | all | none
[-part_family_bom_treatment={ none}]
-script=pre-import-script] [-email=
[-script= -email=email-address]
-parallel=number-of-parallel-processes] [-continue_on_error
[-parallel= -continue_on_error] -verbose]
-continue_on_error [-verbose
-verbose
-transaction_id= tid] [-restart]
[-transaction_id= -restart] [-h
-h]
-h
Arguments
Note
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-dir
Specifies the path name to the directory containing the metafile and the data
files to be imported.
-folder (fol)
Specifies the destination folder in which imported items are placed. If the
folder does not exist or the argument is not supplied, the imported items are
placed in the user's Newstuff folder.
-preview (pre)
Performs an import dry run and generates a dry run report to the file specified
by the -report argument. If the -report argument is not specified, the report
is output to the screen.
-report (rep)
Outputs a preview or completion report to the specified report file. If no
report file name is specified, the report is output to the screen.
-filename (fn)
Specifies the name of the text file listing objects for selective import,
one name per line.
-classoffile (cof)
Specifies the class of objects contained in the input file. If not specified,
Item.
the default class is Item
-list_metafile (lm)
Lists only the contents of the metafile; does not import objects.
-include_pfmembers
Identifies the related part family members to be imported when handling part
family templates.
-include_pftemplate
Identifies the related part family template to be imported when handling
part family members.
-part_family_bom_treatment
Identifies the part family objects associated with the assemblies to be
imported. The argument must be used in conjunction with the -include_bom
argument. Valid options are:
-members
Includes part family member components present in the assembly.
-templates
Includes part family template rather than part family member components.
-all
Includes both the part family member components and templates.
-none
Includes neither the part family member components nor the templates.
-script
Specifies the name of the script to be executed prior to import. If a script
is defined by the TC_post_export_script preference, this argument overrides
NONE, the script defined in the
the preference setting. If specified as NONE
preference file is executed.
-email
Sends e-mail to the user at the specified e-mail address after completion. If
no e-mail address is specified, the e-mail address in the user's Teamcenter
user profile is used.
-parallel (par)
Specifies the number of processes to be started automatically. If this
argument is not specified, the system imports the deferred objects with
a sequential process.
-continue_on_error (con)
Specifies that the import operation proceeds when an error has occurred on an
optional object, such as a reference or manifestation attachment.
-verbose (v)
Runs the utility in verbose mode to display the maximum amount of information.
Typically, nonverbose utility sessions only display error messages.
-transaction_id (trid)
Specifies the transaction ID for a given checkpoint-related operation.
-restart (rs)
Restarts a given transaction at the point of failure.
-h
Displays help for this utility.
Environment
As specified in the Manually configuring your environment for Teamcenter
utilities.
Files
As specified in the Log files produced by Teamcenter.
Restrictions
None.
Examples
To restart a transaction at a site where a failure occurred:
item_import -transaction_id=transaction-id -restart
item_relink
Replaces the external references for a duplicate item and its corresponding
replica in a Multi-Site Collaboration environment. The item_relink utility
works in conjunction with the item_rename utility.
The Bypass option enables or disables special bypass object protections for
Teamcenter administrators, allowing you to freely access any object in the
database to perform maintenance. When running this utility, you must use the
infodba, and the OS user account must have
Bypass option, the user ID must be infodba
read-access to the NX part files to comply with the rules stated in Bypass UG
Verification.
Part File Verification
Caution
• Naming pattern
Because the item_relink utility works in conjunction with the item_rename
utility, the same naming pattern must be used in both utilities.
• Refile folder
The -refile argument generates a refile folder used as an output folder.
The refile folder contains all the assemblies or subassemblies that use
the replicas.
After a duplicate is reconciled, the item_relink utility retrieves the
items that reference the replica item revisions and adds them to the
refile folder. If the refile folder does not exist in the database, the
utility creates one.
If no items are added to the newly created refile folder, it is not saved
in the database and no refile process is required. Otherwise, the refile
folder is saved and used as an input folder during the refile process. The
refile folder must reside in the Home folder of the infodba user to comply
with the restriction in the ugmanager_refile utility.
• Matching criteria
To find the corresponding replica, construct the replica item ID based on
the duplicate item ID and renaming pattern and then search the database
for the replica.
To find the corresponding item revision, match the revision ID.
To find the corresponding BOM view, match the view type name.
To find the corresponding BOM view revision, match the view type name.
To find the corresponding secondary object, match the object name, object
type, and relation type.
• Matching results
For each object that is attached to a duplicate item or duplicate item
revision, if more than one object with the same object name, object type,
and relation type are found in its corresponding replica item or replica
item revision, the first occurrence is used.
If objects attached to a duplicate do not have corresponding objects found
in replica, use the -verify switch to generate a report that lists any
discrepancies. In this case, perform a detailed examination and make the
necessary corrections and/or ownership change for the duplicate. If any
discrepancies are detected during the relink process, the duplicate is not
replaced. Instead, the duplicate is placed in the exception folder. An
error message is logged on the report file for review.
• Exception
If unexpected Teamcenter internal errors occur or the duplicate contains
objects not found in its corresponding replica, the utility stops
processing the duplicate that has a problem, logs an error message to the
report file, and then processes the next duplicate in the replacement
folder. All duplicates that are not reconciled are placed in the
Item_ID_ConsolidationEXP exception folder so you can further examine these
duplicates.
Syntax
-u=user-id {-p=
item_relink [-u= -p=password | -pf=password-file} -g=group]
-replace= folder-name -refile= folder-name
-update | -verify
-prefix=prefix-removed-from-item-id | -suffix= suffix-removed-from-item-id | -f=file-name]
[-prefix=
-bypass_ugpart ]
[-bypass_ugpart
-ignore_attachments]
[-ignore_attachments
-ignore_attachments
-relink_to_latest_rev]
[-relink_to_latest_rev
-relink_to_latest_rev
-report | -report= file-name
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-replace
Specifies the name of the folder that holds items that are currently duplicates
but should be replicas. This must be the same folder used by the item_rename
utility.
-refile
Specifies the name of the folder that holds all the assemblies that use the
replicas. This folder is the input folder to the ugmanager_refile utility.
For more information about the ugmanager_refile utility, see Teamcenter
Integration for NX documentation in the NX online help collection.
-verify
Requests verification of compatibility between duplicates and replicas.
-update
Performs the link replacement.
-prefix
Specifies the prefix removed from the item ID of duplicates to form the new
item IDs for replicas. This must be the same prefix used by the item_rename
utility. See restriction 5.
-suffix
Specifies the suffix removed from the item ID of duplicates to form the new
item IDs for replicas. This must be the same suffix used by the item_rename
utility. See restriction 5.
-f
Specifies the file containing item ID cross reference records. The cross
reference contains the duplicate item ID and the renamed duplicate item ID for
each duplicate item ID. This data is contained in a single 80-byte line in the
file. The item_rename utility also uses this file. See restriction 5.
-bypass_ugpart
Indicates whether NX part files are verified. If this switch is specified,
no verification is performed. This switch is ignored if the -verify argument
is specified.
-ignore_attachments
Prohibits linking of secondary objects (attachments). Use this argument when
the replacement item already has links to all required attachments.
-relink_to_latest_rev
Links all revisions of a duplicate item to latest revision of the replica item.
Ignores secondary objects (attachments) to avoid incorrect attachments. This
argument cannot be specified for items with multiple views.
-report
Generates a report. Outputs the report to standard output if the file name
is not supplied.
-h
Displays help for this utility.
Environment
As specified in the Manually configuring your environment for Teamcenter
utilities.
Files
As specified in the Log files produced by Teamcenter.
Restrictions
The following restrictions must be understood and adhered to when using the
item_relink utility:
infodba.
1. Must be run with the Bypass option, and the user ID must be infodba
2. The OS user account must have read-access to the NX part files to comply
Verification.
with the rules stated in Bypass UG Part File Verification
-prefix, -suffix
5. A default naming pattern is used if the -prefix -suffix, or -f argument
is not supplied.
Examples
The best practice is to run the item_relink utility with the -verify argument
to do a comparison to find discrepancies between duplicates and replicas.
If any exist, examine the discrepancies and make the necessary corrections.
To ensure data integrity, Multi-Site Collaboration imposes strict rules on
object replication. One of these rules is that only the master object can be
modified. The replicated object must never be checked out for modification
or submitted for release. Therefore, if the duplicates contain objects that
have no corresponding replicas, the relink process for these duplicates is
not performed. However, if the replicated objects have increased with more
attachments, the duplicates are overwritten.
• To verify the items in the replacement folder and generate a report called
relink.rpt, enter the following command on a single line. The naming
relink.rpt
pattern must be the same as that used by the item_rename utility.
Item_relink -u=infodba -p=infodba -replace=replacement
-refile=assm_refile -prefix=AAA -verify -report=relink.rpt
item_rename
Changes the item IDs for duplicate part numbers in a naming pattern in a
Multi-Site Collaboration environment. The item_rename utility works in
conjunction with the item_relink utility. The main reason for renaming
duplicates is to avoid a naming conflict while bringing in copies of the
master data that was previously created.
The Bypass option enables or disables special bypass object protections for
Teamcenter administrators, allowing you to freely access any object in the
database to perform maintenance. When running this utility, you must use the
infodba.
Bypass option and the user ID must be infodba
• Naming pattern
-prefix, -suffix
You can use the -prefix -suffix, or -f arguments to embed a renaming
pattern for the duplicate data objects. If these arguments are not used,
the system applies a default naming pattern. The default naming pattern
adds the DUP_ prefix to the duplicate item IDs. For example, if the
ABC123, after the item_rename utility runs the
duplicate item ID is ABC123
DUP_ABC123.
duplicate item ID is DUP_ABC123
The -prefix and -suffix switches enable you to add character strings to
the item IDs to form new item IDs.
The -f switch supplies a file that contains a list of item ID
cross-references. If the -f argument is specified, the system ignores
the -prefix and -suffix switches.
• Exception
If any unexpected Teamcenter internal errors occur, the utility stops
processing the duplicate that has a problem, logs an error message to the
report file, and then processes the next duplicate in the replacement
folder.
The item_rename utility is used only with Multi-Site Collaboration.
Syntax
-u=user-id {-p=
item_rename [-u= -p=password | -pf=password-file} -g=group]
-replace= folder-name -rename | -verify [-prefix=
-prefix= prefix-added-to-item-id |
-suffix= suffix-added-to-item-id | -f=file-name] -report= file-name [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-replace
Specifies the name of the folder that holds the items that are currently
duplicates but that should be replicas.
-prefix
Specifies the prefix added to the item ID of duplicates to form the new item
IDs.
-suffix
Specifies the suffix added to the item ID of duplicates to form the new item
IDs.
-f
Specifies the file containing item ID cross-reference records. The
cross-reference is comprised of the duplicate item ID and the renamed duplicate
item ID for each duplicate item ID. This data is contained in a single 80-byte
line in the file. The item_relink utility also uses this file.
-verify
Requests verification of the existence of renamed items.
-rename
Performs the rename function.
-report
Generates a report and outputs it to standard output if the file name is
not supplied.
-h
Displays help for this utility.
Environment
As specified in the Manually configuring your environment for Teamcenter
utilities.
Files
As specified in the Log files produced by Teamcenter.
Restrictions
The following restrictions must be understood and adhered to when using the
item_rename utility:
infodba.
1. Must use the Bypass option, and the user ID must be infodba
-prefix, -suffix
4. A default naming pattern is used if either the -prefix -suffix, or -f
arguments are not supplied.
Examples
The best practice is to run item_rename with the -verify switch to do a quick
search for any objects with the chosen naming pattern. If any exist, choose a
different naming pattern for all objects.
• Enter the following command on a single line to verify the items in the
rename.rpt. Assume that
replacement folder and generate a report called rename.rpt
the naming pattern adds the prefix AAA to the item ID.
Item_rename -u=infodba -p=infodba -replace=replacement
-prefix=AAA -verify -report=rename.rpt
If any items in the database have the same item ID as the chosen naming
pattern, error messages beginning with ***ERROR are logged on the
rename.rpt file.
• Change the naming pattern and run the item_rename utility again. Otherwise,
use the same command line in step 1, and replace the -verify argument with
the -rename argument to rename the items.
item_report
Generates detail reports of an item or multiple items at the site level. The
site level reports can be merged to generate a combined status output.
Using this utility, a site can investigate item consistency and dual ownership.
It also provides information about the last modified user, locked information
and details about the checkout user (owning and remote checkout). Checkout
information includes the checkout user, respective checkout date, and time
information.
Syntax
-u=user-id {-p=
item_report [-u= -p=password | -pf=password-file} -g=group]
-f=report | merge
[-f=report -itemidsfile=data-file
merge] [-itemidsfile=
| -itemKeyFile= file-name] | -grmtypefile= grm-file
-item_id=itemids
| [-item_id=
| -key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]]
-mergelist=file1,file2,...] | [-mergefiles=
[-mergelist= -mergefiles=merge-list-file-name]
-sites_list=site1,site2,...] | [-sites_file=
[-sites_list= -sites_file=site-list-file-name]
-file=file1] [-file=
[-file= -file=file2] [-file=
-file=file3]
-remove_consistent]
[-remove_consistent -show_rco]
-remove_consistent [-show_rco -include_bom]
-show_rco [-include_bom
-include_bom
-includefoldercontent]
[-includefoldercontent -delimiter=delimiter]
-includefoldercontent [-delimiter=
-anchorfile=anchor-file-name] [-traverseditemfile=
[-anchorfile= -traverseditemfile= outname]
-outfile=file-name]
[-outfile=
-skipItem]
[-skipItem
-skipItem
-start_creation_date= creation-date
{-start_creation_date=
-end_creation_date= creation-date |
-start_modification_date= modification-date
[-start_modification_date=
-end_modification_date= modification-date] |
-start_release_date= release-date
[-start_release_date=
-end_release_date= release-date] }
-sort_by=item_id | item_name | date
[-sort_by=item_id date] [-dataset_version=latest
-dataset_version=latest | all
all]
-out_item_revs_file= output-file] [-h
[-out_item_revs_file= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-function
Specifies one of the following functions:
report Parses object information to a report file. This is the default.
merge Parses input from a set of input files as specified by the mergelist
argument.
-itemidsfile
Specifies a data file containing comma-separated values (CSVs) or carriage
return/line feed separated item IDs.
-item_id
Specifies a list of comma-separated values of item IDs.
-key
Specifies the keys of the items on which to report. Use the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
-grmtypefile
Specifies a data file containing comma-separated values (CSVs) or carriage
grmrelations.
return/line feed separated grmrelations
-mergelist
Specifies a comma-separated list of files from individual sites in the same
order as specified by the sites_list argument.
-mergefiles
Specifies a file containing a list of reports from individual sites in the
same order as specified by the sites_list argument.
-sites_list
Specifies a comma-separated list of sites to be analyzed when using the report
function. This option is ignored when using any of the date-range arguments.
-sites_file
Specifies a file containing a list of sites to be analyzed when using the report
function. This option is ignored when using any of the date-range arguments.
-remove_consistent
Specifies that the utility does not output consistent items in the merged
report.
-show_rco
Specifies that the utility displays remote checkout information. By default,
this information is not displayed.
-include_bom
Specifies that the utility traverses to the end of the item revisions of
PSOccurrences. By default, this action is not performed.
PSOccurrences
-includefoldercontent
Specifies that the utility includes the contents of folders. By default,
folders are not processed.
-delimiter
Specifies the delimiter used in the output file. By default, the commercial
at symbol (@@) is used. Ensure the delimiter for site-based files matches the
merge file input file.
-anchorfile
Specifies the output file of UIDs of revision anchors. This file is used as
input to the purge_dataset utility.
-traverseditemfile
Specifies an output list of traversed item IDs when using the include_bom
argument.
-outfile
Specifies an output file.
-skipItem
Specifies that items are to be skipped.
-start_creation_date
Specifies the creation from date. The date is entered in dd-mmm-yyyy hh:mm:ss
format, for example, 01-Jan-2007 00:00:00
00:00:00. This argument is used with the
end_creation_date argument.
-end_creation_date
Specifies the creation to date. The date is entered in dd-mmm-yyyy hh:mm:ss
00:00:00. This argument is used with the
format, for example, Jan-2007 00:00:00
start_creation_date argument.
-start_modification_date
Specifies the modification from date. The date is entered in dd-mmm-yyyy
hh:mm:ss format, for example, Jan-2007 00:00:00
00:00:00. This argument is used with
the end_modification_date argument.
-end_modification_date
Specifies the creation to date. The date is entered in dd-mmm-yyyy hh:mm:ss
00:00:00. This argument is used with the
format, for example, Jan-2007 00:00:00
start_modification_date argument.
-start_release_date
Specifies the released from date. The date is entered in dd-mmm-yyyy hh:mm:ss
00:00:00. This argument is used with the
format, for example, Jan-2007 00:00:00
end_released_date argument.
-end_release_date
Specifies the released to date. The date is entered in dd-mmm-yyyy hh:mm:ss
00:00:00. This argument is used with the
format, for example, Jan-2007 00:00:00
start_released_date argument.
-dataset_version
Specifies whether all or the latest version of the dataset needs to be reported.
all.
If this argument is not specified, the utility uses the default value of all
-sort_by
Specifies one of the following attributes by which the items are processed:
• date
• item_id
• item_name
If this argument is not specified, the utility uses the default value of
item_id.
item_id
-out_item_revs_file
Specifies an output file for item revisions. You can use this file as an input
to the delete_pdm_data utility. The following is an example of an output
item revision file:
ABC000075/A
ABC000074/A
ABC000092/A
ABN000002/A
ABN000011/A
ABN000058/A
-h
Displays help for this utility.
Restrictions
None.
Examples
• To create reports for the latest dataset versions created between
01-jan-2008, write the report file to c:\temp\reports.txt
01-jan-2007 and 01-jan-2008
c:\temp\itemrevs.txt:
and write the reported item revisions to c:\temp\itemrevs.txt
item_report -u=infodba -p=xxxxxx -g=dba
-start_creation_date=”01-Jan-2007 00:00:00”
-end_creation_date=”01-Jan-2008 00:00:00”
-outfile=c:\temp\reports.txt -out_item_revs_file=c:\temp\itemrevs.txt
migrate_organization
Allows you to create a global organization for your Multi-Site environment.
Organization objects that have been duplicated across multiple sites can be
migrated to be replicas of a master organization site. You use the utility
first to identify duplicate objects between two sites. After identifying
objects that must be made replicas, use the utility make the identified
duplicate objects replicas of the master organization site objects.
Syntax
-u=user-id {-p=
migrate_organization [-u= -p=password | -pf=password-file} -g=group]
-f=compare_organization -report= report-file-name | make_replica
-f=compare_organization
{-f= make_replica}
-user_id=userid1,userid2, … | -role_name= rolename1,rolename2, … |
{ [-user_id=
-group_name= group1,group2, … | -person_name= person1,person2, …] |
-classoffile=class-name -filename= input-file ] }
[-classoffile=
-site=remote-site-name}
{-site=
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-f
Specifies the name of the function. Following functions are valid:
compare_organization
Identifies the duplicate and missing organization objects at the remote
site (specified by -site argument) and the current site. The remote site
is specified using the -site argument and the output is written to the file
specified by the -report argument.
make_replica
-user_id, -group_name
Makes the object specified by the -user_id -group_name, -role_name
-role_name, or
-person_name argument replica objects at the target (remote) site. This
command must be used only at the site that is intended to be the master
site for organization objects. One class of object must be specified but
only one class can be in a command. Alternatively, the -classoffile and
-file_name arguments can be specified to use a file containing the objects
to be replicated. See restriction 4.
-report
Specifies the file name of the report generated by the compare_organization
function.
-user_id
Specifies an ID of a user to change to a replica object at the remote site.
You can specify multiple IDs separated by commas.
-group_name
Specifies the full name of a group to change to a replica object at the remote
site. You can specify multiple group names separated by commas.
-role_name
Specifies the name of a role to change to a replica object at the remote site.
You can specify multiple role names separated by commas.
-person_name
Specifies the name of a person to change to a replica object at the remote
site. You can specify multiple person names separated by commas.
-classoffile
Specifies the class of objects contained in the input file. Valid only with
the -filename argument. The -classoffile argument can specify:
• User
The file must contain user IDs of User class objects.
• Role
The file must contain role names of Role class objects.
• Group
The file must contain full group names of Group class objects.
• Person
--filename
Specifies the name of a file that contains a list of identifiers for objects
of a specified class. Valid only with the -classoffile argument.
Note
-site
Specifies the remote site name.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
1. You must set the IDSM_dsa_sites_permitted_to_push_admin_dat preference at
the remote site specifying the sites that are allowed to push organization
data to the local site.
3. After creating a global organization, you must follow the post migration
requirements described in the Multi-Site Collaboration Guide to properly
maintain your organization.
4. The make_replica function must be run only at the master site (owning
site of global organization data).
6. To migrate a role, for each associated GroupMember object, its User object
must already be migrated.
7. To migrate a group, all of the roles related to the group must be migrated
first.
• ptrain_dev,
Make the identified group objects (ptrain_dev frame_prod) replica objects
ptrain_dev frame_prod
cgn).
at the remote site (cgn
cgn
migrate_organization -u=infodba -p=infodba -g=dba -f=make_replica
—group=ptrain_dev, frame_prod —site=cgn
migrate_saved_searches
Updates pre-Teamcenter 8.1 saved search data (which is in the form of user
preferences) to the current data model. Current saved search functionality
allows users to share saved searches with other users.
Syntax
-u=user-id {-p=
migrate_saved_searches [-u= -p=password | -pf=password-file} -g=group]
-owning_users=all | user-names]
-mode=upgrade | report [-owning_users=all
-users_of_group=all | group-names] [-file=
[-users_of_group=all -file=file-name-path]
-delete=yes | no
[-delete=yes -log=file-name-path] [-h
no] [-log= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-mode
Determines which function the utility performs. Use report to generate a
report of legacy saved searches. Use upgrade to migrate the legacy saved
searches to the current data model.
-owning_users
Migrates the legacy saved search data for the specified users. Use all to
migrate the data of all users. Enter multiple user names separated by commas.
all.
If left unset, the default is all
-users_of_group
Migrates the legacy saved search data for all the uses in the specified
groups. Use all to migrate the data of all groups. Enter multiple group names
all.
separated by commas. If left unset, the default is all
-file
Specifies the path and file name to which the migration report is
written. Use this argument with the report value. The default location is
current-working-directory/migrate_saved_search_ date_report.txt
_report.txt.
-delete
Determines whether to delete legacy saved search data from the database after
no.
migration. Use yes to delete the data. The default setting is no
-log
Specifies the path and file name to which any migration errors are
written. Use this argument with the upgrade value. The default location is
current-working-directory/migrate_saved_search_ date_report.log
_report.log.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
dave, and to
To migrate all the saved searches belong to the users john and dave
delete the user preferences after migration:
migrate_saved_searches -u=infodba -p=password -g=dba -mode=upgrade
-owning_users=john,dave -delete=yes
To migrate all the saved searches belong to all the users in the database,
and to delete the user preferences after migration:
migrate_saved_searches -u=infodba -p=password -g=dba -mode=upgrade
-owning_users=all -delete=yes
pdx_export
Exports data in PDX format.
Syntax
-u=admin-id {-p=
pdx_export [-u= -p=password | -pf=password-file} -g=dba
-g=dba]
{ -item=item-id [-rev=
-rev=item-revision] | -item_key= item-key -sitename target-site}
-optionset=transfer-option-set][-reason=
[-optionset= -reason=reason-description]
-immediate= {True
[-immediate= True | False
False} ] [-notify=
-notify= {True
True | False
False} ]
-emailaddrs=email-address1, email-ddress2, email-addressn]
[-emailaddrs=
-revisionrule= revision-rule-name] [-bomlevel=
[-revisionrule= -bomlevel=level-of-BOM-structure]
-vendors=vendor-name1, vendor-name2, vendor-namen] [-file
[-vendors= -fileoutput-file-name]
-usegs= {True
[-usegs= True | False
False} ]
-h]
[-h
-h
Arguments
-u
Specifies the user ID. The user must have administrative privileges.
If this argument is used without a value, the operating system user name
is used.
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user. The group value must be dba
to run this utility.
-item
Specifies the identifier for the item object to export. This argument is
mutually exclusive with the -item_key argument.
-rev
Specifies the revision of the item object to export. You can use this argument
only when you include the -item argument.
-item_key
Specifies the a string identifier containing attributes that identify the item
object to export. This argument is mutually exclusive with the -item argument.
-sitename
Specifies the name of the importing (target) site.
-optionset
Specifies the name of the transfer option set to use for the export.
-reason
Allows you to type a description of the export purpose. This argument is
limited to 240 characters. If you enter more than 240 characters, the argument
is truncated.
-immediate
Specifies whether to schedule the export or perform it immediately. Valid
values are True or False
False.
-notify
Specifies whether to send a e-mail notification to the users specified in the
False.
-emailaddrs argument. Valid values are True or False
-emailaddrs
Specifies a comma delimited list of e-mail addresses that are notified of
the export.
-revisionrule
Specifies the name of the revision rule to use for the export.
-bomlevel
Specifies the level of BOM to traverse for the export.
-vendors
Specifies a list of vendor names used to filter the content of the exported
data. Only objects associated with a vendor in this list are included in the
export file. If this argument is not specified, objects associated with any
vendor are included.
-file
Specifies the name of the output file containing the PDX export data. If
the file exists, it is overwritten.
-usegs
Specifies whether to use Global Services to perform the export.
-h
Displays help for this utility.
Environment
As specified in Configuring utilities in the Utilities Reference.
Files
As specified in Log files in the Utilities Reference.
Restrictions
You must be logged on as a member of the dba group.
plmxml_export
Exports objects from Teamcenter in PLM XML format. If there are files for
export, as determined by transfer mode, a directory is created and the files
are exported into that directory. The directory is named using the specified
file name without the .xml extension.
This utility is also used to extract file information from the database into
a PLM XML file to prepopulate FSC.
For more information, see the load_fcccache and fscadmin utilities.
Caution
Do not use this utility to export organization objects from sites if the
same organization objects are shared through a global organization.
The Business Modeler IDE application maintains most of the objects that affect
the data model. Any export operation that can result in one or more of the
following objects is not recommended because the generated XML file should not
be imported using plmxml_import utility to avoid data accuracy issues.
Syntax
-u=user-id {-p=
plmxml_export [-u= -p=password | -pf=password-file} -g=group]
-xml_file= xml-file-name -transfermode= transfermode-name
-item=item-id | -key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]]
{[-item=
-rev=item-revision-id] [-export_bom=yes
[-rev= -export_bom=yes | no
no]
-rev_rule=revision-rule] [-svrule=
[-rev_rule= -svrule=saved-variant-rule]
| -class=class-name | -type=type-name | -ics_class= ics-class-name
| -imantypedef= iman-type | -uid=uid-of-object | -foldername= folder-to-export}
-template=workflow-template-name] [-template_stage=
| [-template= -template_stage= workflow-template-stage]
-template_classification= workflow-template-classification]}
[-template_classification=
-locales=language-ID] [-log=
[-locales= -log=log-file-location] [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another privileged user. If this argument is used
without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-xml_file
Specifies the full path of the file to which the data is exported.
-transfermode
Specifies the name of the transfer mode used to export the objects. This
transfer mode specifies the traversal rules, filter rules, and property sets
to be used for export. It determines what is exported from the system. If
not specified, a default transfer mode is used. If -transfermode is set to
justDatasetsOut, you must specify a revision ID using the -rev argument.
justDatasetsOut
-item
Specifies the ID of the item to be exported.
-key
Specifies the keys of the items to be exported in PLM XML format. Use the
following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
• To view the persistent object manager (POM) schema, open the Classes
view in the Business Modeler IDE.
Option Description
Person Export all persons
User Export all users
Role Export all roles
Group Export all groups
GroupMember Export all group members
POM_imc Export all sites
ImanVolume Export volumes
ListOfValues Export all list of values
ListOfValuesString Export string list of values
ListOfValuesDate Export date list of values
ListOfValuesDouble Export double list of values
ListOfValuesInteger Export integer list of values
ListOfValuesChar Export char list of values
ListOfValuesTag Export reference list of values
Options to export workspace objects using -class are shown in the following
table:
Option Description
Item Export all instances of item
ItemRevision Export all instances of item
revisions
Folder Export all instances of folder
Form Export all instances of forms
Dataset Export all instances of datasets
Alias Export all instances of alias
EPMJob Export all instances of workflow jobs
PSBOMView Export all instances of BOM view
PSBOMViewRevision Export all instances of BOM view
revision
Tool Export all instances of tool
Options to export business rules using -class are shown in the following table:
Option Description
BusinessRule Export all business rules
NameRule Export all naming rules
NameField Export all naming field
HideTypeRule Export all hide type rules of tool
ImanCompoundPropDef Export all compound property rules of
tool
ImanGRM Export all GRM rules
TypeCannedMethod Export all action rules
Option Description
FormTypeDef Export all form type definition
ImanType Export all instances of Teamcenter
types
NoteType Export all note types
PSViewType Export all view types
UnitOfMeasure Export all defined unit of measures
TaskType Export all defined status
PSOccurrenceType Export all occurrence types
-type
Exports all instances of a given type.
-ics_class
Exports the specified classification class, if it exists.
-imantypedef
Exports the definition of specified type.
Options and their results for -imantypedef are shown in the following table:
Option Description
ListOfValues Export list of values
ImanQuery Export saved queries
Tool Export tool definitions
TaskType Export defined status
IdContext Export identifier contexts
Status Export defined status
StorageMedia Export storage media
Note Export PS occurrence note types
UnitOfMeasure Export unit of measures defined
Occurrence Export occurrence types
View Export view types
RevisionRule Export revision rules for PS configuration
Alias Export alias and its types
Identifier Export identifier and its types
MEWorkArea Export workarea
MEOP Export ME operation
ChangeTypeData Export changeid/changetypen
Dataset Export dataset type definition
ImanType Export all Teamcenter types
ImanRelation Export relations
AppearanceGroup Export appearancegroup types
-export_bom
Specifies that the BOM is exported. This argument must be used in conjunction
with the -item argument.
-uid
Exports the object specified by the UID.
-foldername
Exports the specified folder, if it exists.
-template
Specifies the name of the exported workflow template.
-template_stage
Specifies the stage type of the exported workflow template. This argument
OBSOLETE_STAGE,
is used with the -template argument. Valid values are OBSOLETE_STAGE
UNDER_CONSTRUCTION_STAGE, or AVAILABLE_STAGE (default). If this option is not
UNDER_CONSTRUCTION_STAGE
specified, the default value is used.
-template_classification
Specifies the classification type of the exported workflow template. This
argument is used with the -template argument. Valid values are TASK_TEMPLATE
and PROCESS_TEMPLATE (default). If this option is not specified, the default
value is used.
-locales
Specifies the languages for the export. Separate multiple languages by commas.
The language IDs should follow the standard Java locale naming conventions
en_US). If no locales are specified for export, the database
(for example, en_US
scalar value (attribute master) is exported to PLM XML scalar fields.
-log
Specifies the full path of the export log file. If this option not specified,
the log file is created in the $TC_TMP_DIR directory. If $TC_TMP_DIR is not
C:\TEMP
defined, the log file is created in the system temporary directory (C:\TEMP
on Windows or /tmp on UNIX).
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
• Siemens PLM Software recommends you do not use the following transfer
modes with this utility:
BOMwriterExport
JTDataExportDefault
TIEPDXExportDefault
TIEUnconfiguredExportDefault
PLMXMLAdminDataExport
• Do not use this utility to export organization objects from sites if the
same organization objects are shared through a global organization.
Examples
• ABC00001, revision A, to a PLM XML file
The following command exports item ABC00001
using the toPrimeSupplier transfer mode context. The default revision
rule is applied.
plmxml_export -u=infodba -p=password -g=dba -xml_file=abc00001_A.xml
-item=ABC00001 -rev=A -transfermode=toPrimeSupplier
• The following command exports all users to an XML file using the default
context to export the data to PLM XML format:
plmxml_export -u=infodba -p=infodba -g=dba -xml_file=tcusers.xml
-class=User
• The following command exports an object specified by the UID and uses the
default context to export the data to PLM XML format. The UID should be
a unique identifier in Teamcenter:
plmxml_export -u=infodba -p=infodba -g=dba -xml_file=myobj.xml
-uid=”QRw4LZ0g1YomJAAAAAAAAAAAAAA”
• The following command creates a PLM XML file containing all external
file references associated with the top level item selected for cache
prepopulation.
plmxml_export -u=infodba -p=infodba -g=dba -item=ITEM -rev=A
-export_bom=yes -transfermode=justDatasetsOut -out=tickets.plmxml
• The following command exports the item with ID item1 to the PLM XML file
item1.xml. The French and German translations of the localized properties
item1.xml
on item1 that are identified for export (from the property set) are also
exported to text elements.
plmxml_export -u=infodba -p=infodba -g=dba -item=item1
-locales=fr_FR,de_DE -xml_file=item1.xml
plmxml_import
Imports objects to Teamcenter from a specified PLM XML file. In cases where
a transfer mode manages the import, the utility looks for files in the path
specified by the xml_file argument. This utility is also used to import
workflow templates. If the PLM XML file being imported contains translations
of localizable properties in multiple languages, the translations of the
supported languages are imported into the database.
Caution
The Business Modeler IDE application maintains most of the objects that affect
the data model. To avoid data accuracy issues, any PLM XML file that may
contain one or more of the following objects should not be imported using the
plmxml_import utility.
Syntax
-u=user-id {-p=
plmxml_import [-u= -p=password | -pf=password-file} -g=group]
-xml_file= name-of-xml-file -transfermode= transfermode-name
-log=log-file-name] [-import_mode=overwrite
[-log= -import_mode=overwrite | ignore
ignore]
-apply_template | -ignore_originid
[{-apply_template -ignore_originid}] [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another privileged user. If this argument is used
without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-xml_file
Specifies the full path of the file name from which the data is imported.
-transfermode
Specifies the name of a transfer mode used to import the objects. This transfer
mode specifies the traversal rules, filter rules, and property sets to be used
for import. It determines what is imported from the system. If not specified,
a default transfer mode is used. In addition the following transfer mode
values can be applied to import workflow templates.
-log
Specifies the full path of the import log file. If this option not specified,
the log file is created in the $TC_TMP_DIR directory. If $TC_TMP_DIR is not
C:\TEMP
defined, the log file is created in the system temporary directory (C:\TEMP
on Windows or /tmp on UNIX).
-import_mode
Specifies the mode in which import is handled for PLM XML Import/Export
configuration objects. In overwrite mode, objects that already exist in the
database are overwritten. In ignore mode, the imported object is ignored if
the imported object already exists in the database.
The classes that function with this argument are:
-apply_template
When the workflow_template_overwrite transfer mode is specified, and the
imported workflow template contains changes from the existing workflow
template, this argument applies those changes to all active workflow processes
based on the workflow template.
For more information about how the workflow template changes are applied, see
the Workflow Designer Guide.
This argument must be used with the workflow_template_overwrite transfer mode.
The -apply_template and -ignore_originid arguments are mutually exclusive.
-ignore_originid
Prevents the check of the origin_id property and forces the imported workflow
template to overwrite the current one. Changes to active workflow processes
are not applied.
The -apply_template and -ignore_originid arguments are mutually exclusive.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
• Siemens PLM Software recommends you do not use the following transfer
modes with this utility:
JTDataImportDefault
TIEImportDefault
• Do not use this utility to export organization objects to sites if the same
organization objects are shared through a global organization.
Examples
• To import all objects in the abc.xml file using the default context, enter
the following command on a single line:
plmxml_import -u=infodba -p=infodba -g=dba -xml_file=abc.xml
If errors are detected during the import operation, a log file named
abc_log.txt is created.
plmxml_tm_edit_xsl
Lists, exports, attaches, or detaches an .xslt file to a given transfer mode.
If you are using multiple .xslt files, you must run the utility for each
file. The files are applied in the order in which you include them in and
run the utility.
Syntax
-u=user-id {-p=
plmxml_tm_edit_xsl [-u= -p=password | -pf=password-file} -g=group]
-transfermode= transfermode-name
-action= | list | export | attach | detach | detach_all
-xsl_file=xslt-filename
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-transfermode
Specifies the transfer mode to which the .xslt file is exported, attached,
or detached.
-action
Performs one of the following actions on the transfer mode:
list
Lists all .xslt files associated with the transfer mode.
export
Exports the .xslt file to the operating system.
attach
Attaches the .xslt file to the transfer mode.
detach
Detaches and removes the .xslt file from the transfer mode.
detach_all
Detaches and removes all of the .xslt files from the transfer mode
-xls_file
Specifies the .xslt file.
export, attach
This option is required if the -action option is set to export attach, or
detach.
detach
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
step_export
Exports Teamcenter data from the database to STEP-compliant physical files.
There are two ways to use this utility: single-line and batch mode. The
single-line method uses the -item=item-id argument and other optional arguments
to export one object at a time; batch mode uses the -i=input-file argument and
an input file to export several objects at once.
Syntax
-u=user-id {-p=
step_export [-u= -p=password | -pf=password-file} -g=group]
{-i=input-file
-i=
-item=item-id | -key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]]
| [-item=
-item_rev=item-rev-id] [-ds=
[-item_rev= -ds=dataset] [-rel=
-rel=relation-name]}
-fmt=AP203
-fmt= AP203 | AP214 | IMAN [-full_assembly
-full_assembly]
-full_assembly
-all_ds_versions]
[-all_ds_versions -f=file-name] [-cmt=
-all_ds_versions [-f= -cmt=comments] [-h
-h] -v]
-h [-v
-v
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-i
Specifies the input file containing the list of objects to export. The
complete path name must be provided.
-item
Specifies the item ID of the item being exported.
-item_rev
Specifies the item rev ID of the item revision being exported.
-ds
Specifies the dataset being exported.
-rel
Specifies the name of the Teamcenter relation containing the dataset.
-key
Specifies the keys of the items to export. Use the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
.rose files are STEP schema files used by the STEP Translator. The step_export
utility must be able to write these files in this directory.
Restrictions
Either the -item=item-id or the -i=input-file argument must be supplied.
Examples
To export several objects in batch mode (using an input file), perform the
following:
1. Create an input file and add one line for each object you want to export in
the following format:
Note
Ensure that you separate each argument with a semicolon (;;) and
put each object on its own line.
-item=item-id;-item_rev=item-rev-id;-ds=dataset;-rel=relation-name
-item=item-id;-item_rev=item-rev-id;-ds=dataset;-rel=relation-name
step_import
Imports product information from STEP-compliant physical files into the
Teamcenter database.
Syntax
-u=user-id {-p=
step_import [-u= -p=password | -pf=password-file} -g=group]
-f=file-name | -i=input-file} [-h
{-f= -h] -v]
-h [-v
-v
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-f
Specifies a single STEP file. The complete file specification (full path and
file name) must be supplied unless the file is in the current working directory.
-i
Specifies the input file containing list of STEP files to batch process. The
complete file specification (full path and file name) must be supplied unless
file is in the current working directory.
-h
Displays help for this utility.
-v
Runs utility in verbose mode, displaying maximum amount of information.
Typically, nonverbose utility sessions only display error messages.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter and the following:
$ROSE_DB/*.rose
.rose files are STEP schema files used by the STEP Translator. The step_export
utility must be able to write these files in this directory.
Restrictions
Either the -f=file-name or the -i=input-file argument must be supplied.
Examples
None.
sync_form_util
Creates or modifies the ParticipatingSitesForm type used to control replication
of released assemblies to designated sites.
Syntax
-u=user-name {-p=
sync_form_util [-u= -p=password | -pf=password-file} -g=group]
-item_id=root-item -rev=
{-item_id=
-f={create
-f= create | add | mv
mv] [forminfo
forminfo
-project= project-id -sitelist=
-sitelist={site1, site2, …, siten}}
-h]
[-h
-h
Arguments
Note
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value is the
password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
Caution
For HTTP enabled sites, remote site operations log on using the default
group for the user supplied with the -u argument. Any value supplied
with the -g argument is ignored.
-item_id
Specifies the top item in the structure context object (SCO) assembly.
-rev
Specifies the top item revision used to configure the structure.
-f
Specifies the function to perform.
create
Creates and attaches the ParticipatingSites form.
add
Adds the site(s) specified in the -sitelist argument to the SiteList
attribute of the ParticipatingSites form.
mv
Removes the site(s) specified in the -sitelist argument from the SiteList
attribute.
forminfo
Retrieves the ParticipatingSites form information.
-project
Specifies the name of the project associated with the participating sites.
-sitelist
Specifies a comma delimited list of sites to receive the replicated SCO
assembly.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Examples
Note
sync_on_demand
Synchronizes or reports the synchronization state of a specified component,
assembly, or object. The synchronization state indicates whether the replica
is up-to-date and whether any object that has been added to the master has
been replicated by the site running the utility.
The site that runs the sync_on_demand utility and the site that owns the
component, assembly, or object being synchronized must both be instances of
Teamcenter that support on-demand synchronization. If an assembly contains
components from sites that do not support on-demand synchronization, the state
unknown.
of those components are reported as unknown
Component synchronization allows you to determine the state of, or synchronize,
all objects associated with the specified revision, such as BVR and attachments.
Assembly synchronization allows you to determine the state of, or synchronize,
an entire assembly.
Object synchronization allows you to determine the state of individual objects,
such as a dataset or form. You can also select item or item revisions for
object synchronization, however the state or objects associated with the item
or item revision is not reported or affected.
This utility uses the IDSM process at the remote replica's owning site to
accomplish the report task and remote import to accomplish the synchronization.
Syntax
-u=user-id {-p=
sync_on_demand [-u= -p=password | -pf=password-file} -g=group]
-uid_report=uid-report-file-name]
-f =sync | report [-uid_report=
-type=object | component | assembly
{-rev_rule= revision-rule | -rev=rev-id} [-assy_level=
-assy_level=number]
-item_id=item-id | -key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…
{[-item_id=
[,keyAttrN=keyValN]
| template | -folder= folder-name
| -name=wso-name | -filename= file-name
| -itemKeyFile= file-name}
-class=wso-class-name | -classoffile= class-name]
[-class=
-exclude=relation-type1] -exclude= relation-type2 …]
[-exclude=
-include=relation-type3 -include= relation-type4… ]
[-include=
-exclude_folder_contents]
[-exclude_folder_contents -exclude_protected_objects]
-exclude_folder_contents [-exclude_protected_objects
-exclude_protected_objects
-exclude_protected_comp]
[-exclude_protected_comp -batch_size=number-of-objects-per-batch]
-exclude_protected_comp [-batch_size=
-report_file=report-file-name] [-error_report=
[-report_file= -error_report= error-file-name]
-separator=uid-separator-characters] [-h
[-separator= -h]
-h
Arguments
Note
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-f
rep).
Specifies the function to perform. Valid values are sync or report (rep
rep
Where sync performs a synchronization on the specified object, component, or
assembly, and report returns the synchronization state.
-uid_report
Returns a report on the specified object, component, or assembly that contains
the UIDs of objects enclosed within square brackets ([[ ]) by default. The
characters used to enclose the UIDs are configurable through the -separator
argument. This file can be processed by a custom script to create an input
file that the data_share utility uses to import objects from a remote site.
Using UIDs for remote import increases performance by eliminating the remote
query required to determine an item or item revision UID.
-separator (sep)
Designates the start and end characters used to enclose the UID of objects in
a uid_report file. If this argument is not specified, the UIDs are enclosed in
square brackets ([[ ]).
-type
Specifies the type of Teamcenter object on which to perform the function.
Valid values are:
• object (obj)
• component (comp)
• assembly (assy)
-rev_rule
Specifies the name of the revision rule used to perform the synchronization
or report function. This name must specify and existing revision rule at
the local site This value is passed to the owning site where it is used to
determine the item revision to report status for or synchronize. You must
supply this argument if the target object is an assembly.
-rev
Specifies the revision ID of the revision to report the status of or
synchronize.
-assy_level (al)
Specifies the number of levels of the assembly to report. This argument is
valid only for the report function.
-item_id (item)
Specifies the ID or template of items to report the status of or synchronize.
-name, -folder
Mutually exclusive with the -name -folder, and -filename arguments.
-key
Specifies the keys of the items to export. Use the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
-filename (fn)
Specifies the name of the input file containing IDs or names of objects to
-name,
report the status of or synchronize. Mutually exclusive with the -name
-folder, and -item_id arguments. If the input file contains names, the
-folder
-classoffile argument is required.
-keyFileName
Specifies the name of the output file containing the keys to export. The
file format is:
-key = [keyAttr1=keyVal1][keyAttr2=keyVal2]…
-key =[keyAttr1=keyVal1][keyAttr2=keyVal2]…
-key =[keyAttr1=keyVal1][keyAttr2=’keyVal2’]…
-class (cl)
Specifies the Teamcenter class of the object specified by the -name argument.
This argument is valid only with the -name argument. If not specified, Item
is the default class.
-classoffile (cof)
Specifies the class of objects in the input file. This argument is valid only
with the -filename argument. If not specified, Item is the default class.
Folder is a valid class for synchronization.
-exclude
Excludes the specified relation type. This argument may be given multiple times
and must use the database name (not the display name) of the relation type.
-include
Includes the specified relation type. This argument may be given multiple
times and must use the database name (not the display name) of the relation
type. Use this argument to force the inclusion of a relation type that may
have been excluded during the last export.
-exclude_folder_contents (efc)
Excludes the contents of a folder. Intended for use with NX part families
where family members are stored in a folder that is related to the item.
-exclude_protected_object (epo)
Excludes export protected objects.
-exclude_protected_comp (epc)
Excludes export protected components. This argument is valid only when the
assembly.
-type argument is set to assembly
-batch_size (bs)
Specifies the number of objects per batch; a new process is created per batch.
Default batch size is 1000. Must be a positive integer. This is useful when
processing thousands of objects, because it helps avoid memory and disk space
shortage problems.
-report_file
Generates a report that is output to the specified file.
report, the report contains the synchronization
If the function specified is report
state of each object, component, or components of an assembly.
sync, the report shows all successful imports and
If the function specified is sync
any errors that occur during the synchronization.
If the function specified is report and this argument is not supplied, the
std out
report is displayed in a shell (std out).
-error_report
Generates a error report that is output to the specified file. This file
contains only error information. It provides no synchronization information.
If a file name is not supplied, the report is displayed in a shell. This
argument is normally used with the -sync argument to provide error information
during the synchronization process.
-h
Displays help for this utility.
Examples
Note
stdout.
The assembly components are synchronized and errors are output to stdout
• uids_list.txt)
To create a file (uids_list.txt
uids_list.txt containing UIDs that can be processed for
use as input for the data_share utility:
sync_on_demand -f=report -uid_report=uids_list.txt
• uids_list.txt)
To create both a report file (uids_list.txt
uids_list.txt containing UIDs and a
sync.txt):
synchronization report file (sync.txt
sync.txt
sync_on_demand -f=report -report_file=sync.txt -uid_report=uids_list.txt
• uids_list.txt)
To create a report file (uids_list.txt
uids_list.txt containing UIDs enclosed by
{ }
brackets ({ ):
sync_on_demand -f=report -uid_report=uids_list.txt -sep=”{}”
tcxml_export
Exports objects from Teamcenter in TC XML format. If there are files for
export, the utility creates an FMS read file ticket and saves it in the output
XML file for each file.
Syntax
-u=user-id [-p=
tcxml_export [-u= -p=password | -pf=password-file] [-g=
-g=group] ]
-file=output-xml-file {-item=
-item=item-id [-rev=
-rev=revision-id] |-folder=
-folder=folder-name |
-class=POM-classname | -uid=uid-of-object |
-item_key= attr-name1=value, attr-name2=value, ...}
-transfermode= transfer-mode-name | -optionset= transfer-option-set-name]
[-transfermode=
-targetsites=list-of-target-site-ids]
[-targetsites=
-transferownership]
[-transferownership
-transferownership
-sync]
[-sync
-sync
-incrementalChangeDelta]
[-incrementalChangeDelta]
-reason=reason-for-export]
[-reason=
-revrule =revision-rule]
[-revrule
-bomlevel =desired-bom-level]
[-bomlevel
-svrule]
[-svrule
-svrule
-processUnconfiguredByOccEff]
[-processUnconfiguredByOccEff
-processUnconfiguredByOccEff
-processSuppressedOcc]
[-processSuppressedOcc
-processSuppressedOcc
-processUncofifguredVariants]
[-processUncofifguredVariants
-processUncofifguredVariants
-processUnconfiguredChanges]
[-processUnconfiguredChanges
-processUnconfiguredChanges
-requiredLang= locale-code-1, locale-code-2, ..., locale-code-n]
[-requiredLang=
-allowedLang=locale-code-1, locale-code-2, ..., locale-code-n]
[-allowedLang=
-inputfile=file-with-item-ids | -inputuidfile= file-with-uids}
-low-level {-inputfile=
[-low-level
-force_retraverse]]
[-force_retraverse
-force_retraverse
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-file
Specifies the output XML file name. The value can be either an absolute path
(full path name) or a relative path name.
-item
Specifies the ID of the item to be exported.
-rev
Specifies the revision ID of the item to be exported. If this argument is not
specified, the configured revision (either specified or default) is exported
for the item.
-folder
Specifies the folder containing objects to be exported.
-class
Specifies a class name. Instances of this POM class are exported. The
following workspace object names are valid:
• Item
• ItemRevision
• Folder
• Dataset
• Alias
• ImanFile
• ImanRelation
• ReleaseStatus
• IdContext
• Identifier
• PSBOMView
• PSBOMViewRevision
• TransferMode
• TransferOptionSet
-uid
Specifies the UID of an object (one object only).
-item_key
Specifies a comma-delimited list of attributes used to identify the object to
be exported.
-transfermode
Specifies the transfer mode name used to export the objects. If this argument
is not specified, the utility uses a default transfer mode. See restriction 2.
-optionset
Specifies the transfer option set name used to export the objects. Mutually
exclusive with the -transfermode argument. If you specify both, the command
does not fail. However, the transfer mode indicated by this -optionset
argument takes precedence over the transfer mode specified by the -transfermode
argument. See restriction 3.
-targetsites
Specifies a comma-delimited list of destination site IDs. If used with the
-transferownership argument, must contain only one site ID.
-transferownership
Indicates that this export transfers the ownership of exported objects to the
given target site. You must specify only one site ID in the -targetsites
argument if you use this argument.
-sync
Indicates that this export is for data synchronization.
-incrementalChangeDelta
Exports modified objects tracked by configured incremental change as a partial
structure export.
Because incremental change data is configured data, you must specify
a configured transfer option set for the -optionset argument. The
-processUnconfiguredChanges and -processSuppressedOcc arguments are ignored
if they are included.
-reason
Specifies the reason for this export.
-revrule
Specifies the revision rule to use to configure the exported BOM with the
specified item as the top line.
-bomlevel
Specifies the level in the BOM.
-svrule
Specifies the saved variant rule to use to configure the exported BOM.
-processUnconfiguredByOccEff
Exports BOMLine objects that are not configured for occurrence effectivity.
-processSuppressedOcc
Exports suppressed BOMLine objects.
-processUnconfiguredVariants
Exports BOMLine objects that are not selected by BOMLine object’s variant
conditions.
-processUnconfiguredChanges
Exports BOMLine objects configured out of the BOM by incremental change.
-requiredLang
Specifies a list of comma separated locale values. This list is used to ensure
that localized attributes in the exported data have at least one representation
that can be used as the attribute master language at the importing site. It
also defines a priority order for the exporter to determine the attribute
master language. The valid locale values must match the Java locale naming
convention that consists of two groups of two-character identifiers separated
by an underscore character (__) for a particular combination of language and
region. For example, zh_CN represents Simplified Chinese in China and en_US
represents English in the United States
-allowedLang
Specifies a list of comma separated locale values. This list is used to get
additional representations for localized attributes in the exported data for
use at the importing site. The valid locale values must match the Java locale
naming convention that consists of two groups of two-character identifiers
separated by an underscore character (__) for a particular combination of
language and region. For example, zh_CN represents Simplified Chinese in China
and en_US represents English in the United States
-h
Displays help for this utility.
Fast export
arguments
The following arguments support low-level fast export functions used for
site consolidation activities. The use of these arguments requires the
SITCONS_AUTH_KEY environment variable be set to a valid license key. You
must obtain a key from GTAC.
Export files created using the low-level export do not contain GSID attributes.
-low_level
Performs fast import using POM-level APIs and a DBA user. You must specify
this argument to use any of the fast export arguments.
You can use any of the following standard tcxml_export arguments, in
addition to the other fast export arguments, when you specify the
-low_level argument.
-folder
-file
-targetsites
-transfermode
-optionset
-reason
-inputfile
Specifies a file that contains a list of item IDs indicating items to
export using fast low-level export. You must include either this argument
or the -inputuidfile argument when using the -low_level argument.
The input file may contain both multifield key and standard item ID values,
for example:
Item_id=Ace1
Item_id=lor1,object_name=fixedPl,object_type=type
Item_id=lor2,object_descr=acmetool,object_type=type
-inputuidfile
Specifies a file that contains a list of UIDs indicating items to export
using fast low-level export. You must include either this argument or the
-inputfile argument when using the -low_level argument.
-force_retraverse
Forces retraversal of previously replicated or exported objects during
fast low-level export.
Environment
As specified in the Manually configuring your environment for Teamcenter
utilities.
Files
As specified in the Log files produced by Teamcenter.
Restrictions
1. Not all PLM data is supported. For a list of objects that are supported,
see the Data Exchange Guide.
• Select an item revision and export its attachments using default export
itemrev.xml, is created in the
transfer mode. The output XML file, itemrev.xml
directory where this command is executed.
tcxml_export -u=infodba -p=infodba -g=dba -item=item_id
-rev=item_rev -file=itemrev.xml
• 000001.
Synchronize item 000001
tcxml_export -u=infodba -p=infodba -g=dba -item=000001
-file=itemsync.xml -optionset=TransferOptionSet
-sync -reason=ItemIsOutDated
• Export the Latest Working revision of the Top1 item using the
TIEConfiguredExportDefault transfer option set.
tcxml_export -u=infodba -p=infodba -item=Top1
-optionset=TIEConfiguredExportDefault -revrule="Latest Working"
-file=D:\temp\Top1_HL.xml
• Export a partial structure that includes only the changes to the Top1
assembly that are tracked by configured incremental change:
tcxml_export -u=infodba -p=infodba -item=Top1
-targetsites=-2054508072 -optionset=TIEConfiguredExportDefault
-revrule="Latest Working" -sync -incrementalChangeDelta
-file=/tmp/0001_delta.xml
• Fast export the objects identified in the inp.txt file using the
56781234.
VARIANTRULE1 saved variant rule to site 56781234
tcxml_export -u=infodba -p=infodba -low_level -inputfile=d:\Temp\inp.txt
-file=d:\Temp\top1_ll.xml -optionset=TIEConfiguredExportDefault
-svrule=VARIANTRULE1 -targetsites=-2054508072
tcxml_export:
Special cases for tcxml_export
• Export in-process workflow Items:
2. In the rich client, search for workflow job corresponding to that item.
3. Copy this job and paste it into a new folder with unique name.
2. Copy the CCO and paste it into a new folder with a unique name.
3. Export this folder to export the CCO and the entire structure context.
3. Import the data at the target site using the tcxml_import utility in
low-level mode:
tcxml_import -u=infodba -p=infodba -g=dba -file=d:\out.xml -low_level
Note
tcxml_import
Imports objects into Teamcenter from a TC XML file.
Additionally, this utility is used in conjunction with the attribute_export
utility to update the values of object properties in your Teamcenter database
in bulk.
For more information about updating property values in bulk, see the System
Administration Guide.
Syntax
tcxml_import
-u=user-id{-p=
[-u= -p=password | -pf=password-file} -g=group]
-file=xml-file-name
-xsl=xsl-file-name]
[ [-xsl=
-errorcontinue={yes
-errorcontinue= yes | no
[-errorcontinue= no} ]
-site=site-name]
[ [-site=
-transfermode= transfer-mode]
[-transfermode=
-optionset=option-set-name] ] |
[-optionset=
-scope_rules [-scope_rules_mode=ignore
[ [-scope_rules -scope_rules_mode=ignore | overwrite
overwrite] ] ]
-requiredLang= locale-code-1, locale-code-2, ..., locale-code-n]
[-requiredLang=
-allowedLang=locale-code-1, locale-code-2, ..., locale-code-n] ] |
[-allowedLang=
-low_level]
[-low_level
-low_level |
-bulk_load -site=site-name ]
[-bulk_load
-bypassSiteCheck]
[-bypassSiteCheck
-bypassSiteCheck
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-file
Specifies the input TC XML file containing the objects to imported into
Teamcenter.
-xsl
Specifies the input XSL file to apply to the TC XML file before import.
-errorcontinue
Indicates whether to continue import after encountering an error. The default
yes. If you specify no and the utility encounters an error, the
value is yes
utility rolls back all of the changes performed during the current import.
-site
Specifies the master exporting site from which input TC XML data is generated.
This argument is mutually exclusive with the -scope_rules and -scope_rules_mode
arguments.
-transfermode
Specifies the transfer mode name that is to be used for import. If this
argument is not specified, the utility uses the TIEImportDefault transfer
mode. This argument is mutually exclusive with the -scope_rules and
-scope_rules_mode arguments.
-optionset
Specifies the option set name that contains options to use during import. This
argument is mutually exclusive with the -scope_rules and -scope_rules_mode
arguments.
-scope_rules
Specifies the input XML data contains scope rules, that is, transfer modes,
closure rules, filter rules, property sets, actions rules, or transfer options
-site, -transfermode
sets. This argument is mutually exclusive with the -site -transfermode, and
-optionset arguments. See Restrictions.
-scope_rules_mode
Specifies the import behavior when a rule is imported that already exists
in the database. If set to ignore the rule is not imported. If set to
overwrite, the existing database rule is overwritten. If you do not specify
overwrite
this argument, ignore behavior is used. If you do not specify the -scope_rules
argument, this argument is invalid.
-optionset
Specifies the option set name that contains options to use during import.
-requiredLang
Specifies a list of comma separated locale values. This list is used to ensure
that localized attributes in the imported data have at least one representation
that can be used as the attribute master language at the importing site. It
also defines a priority order for the exporter to determine the attribute
master language. The valid locale values must match the Java locale naming
convention that consists of two groups of two-character identifiers separated
by an underscore character (__) for a particular combination of language and
region. For example, zh_CN represents Simplified Chinese in China and en_US
represents English in the United States
-allowedLang
Specifies a list of comma separated locale values. This list is used to get
additional representations for localized attributes in the imported data for
use at the importing site. The valid locale values must match the Java locale
naming convention that consists of two groups of two-character identifiers
separated by an underscore character (__) for a particular combination of
language and region. For example, zh_CN represents Simplified Chinese in China
and en_US represents English in the United States.
-low_level
Performs a fast import using POM level APIs. Fast import is normally used for
consolidation of site databases. You must specify only the -file argument; all
other arguments are ignored during fast imports. To use this argument, you
must set a license key value for the SITCONS_AUTH_KEY environment variable.
You must obtain the key from GTAC. For more information about consolidating
sites see the Site Consolidation Guide.
-bulk_load
Performs a fast import of legacy data from a file containing low-level TC XML
formatted data. You must specify only the -file and -site arguments; all other
arguments are ignored when bulk loading low-level data. If you specify any
other optional arguments they are ignored. To use this argument you must
set a license key value for the SITCONS_AUTH_KEY environment variable. You
must obtain the key from GTAC.
For more information about loading bulk data, see the Data Exchange Guide.
-bypassSiteCheck
If specified, this switch bypasses the check that prevents the utility from
updating objects at the same site.
If specified, this switch bypasses the check that prevents the update of
replica objects
Note
Caution
Use this argument only with the -bulk_load argument for bulk update of
attributes of local objects and import of archived audit records.
-h
Displays help for this utility.
Environment
As specified in the Manually configuring your environment for Teamcenter
utilities.
Files
As specified in the Log files produced by Teamcenter.
Restrictions
• When importing transfer option sets, if a local option set at the exporting
site is specified for import, the utility assigns the local site as the
site reference and the imported option becomes local to the importing site.
If a remote option at the exporting site is specified for import, the site
reference of that option set is expected to exist in the database at the
importing site. If it is not, the import fails. To avoid this failure, you
must manually create the option set before attempting the import.
• Not all Teamcenter data is supported for import. For a list of objects
that are supported, see the Data Exchange Guide.
Examples
• The following example imports objects specified by the -file argument:
tcxml_import -file=xml-file-name -u=userid -p=password
• The following example imports objects specified by the -file argument and
uses the value specified by the -xsl argument to apply transformation on
the input XML file:
tcxml_import -file=xml-file-name -u=userid -p=password
-xsl=xsl-file
• The following example imports objects specified by the -file argument and
uses the value specified by the -optionset argument to access the options
that must be used during import:
tcxml_import -file=xml-file-name -u=userid -p=password
-optionset=option-set-name
tcxml_validate
Validates the contents of a low-level TC XML formatted file. This file may be
an a file exported from a Teamcenter site or constructed by a custom solution
that maps legacy system data to the Teamcenter unified data model. You can use
this to validate the file information prior to importing it into a Teamcenter
site or to compare the Teamcenter data created by importing the file to the
contents of the imported file. This utility requires a license key. For
information about obtaining and setting the license key, contact GTAC.
Syntax
-u=user-id {-p=
tcxml_validate [-u= -p=password | -pf=password-file} -g=group]
-file=input-xml-file -action=
{-file= -action={pre
pre | post
post}}
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-file
Specifies the input TC XML file name. The value can be either an absolute path
(full path name) or a relative path name.
-action
pre, checks the named file for conformance to the importing
When set to pre
sites schema, logical data model, and business constraints. The output
of the utility is written to a log file that uses the naming convention
input-xml-file-name_validator.log
_validator.log. This file uses a pipe (||) character as a
field delimiter and can be imported into Microsoft Excel for easy reading.
This file contains any errors and discrepancies found by the utility.
Note
The post action is not available at this time. Use the pre action.
When set to post compares the named file contents to the data created when the
file was imported to verify the objects where imported properly.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
You must acquire a license key from GTAC and set the SITCONS_AUTH_KEY
environment variable to this value to use this utility.
Examples
0001.xml)
The following command validates a file (0001.xml
0001.xml and creates a log file
0001_validator.log)
(0001_validator.log
0001_validator.log containing the results of the validation.
tcxml_validate -u=infodba -p=infodba -file=D:\temp\0001.xml -action=pre
tcxml_xfer_ownership
Description
Transfers the ownership of a set of Teamcenter objects. You can use this
utility to change ownership of all objects owned by a site during site
consolidation, change ownership of related objects during transition from
Teamcenter Enterprise to Teamcenter (flip-the-switch ownership transfer), or
change object ownership when importing objects into Teamcenter from another
data management system.
For performance reasons during site consolidation, this utility changes
ownership of objects using SQL calls, not the POM API. Rich client refresh
works only when POM calls are used to change an attribute, including ownership
changes. Therefore, ownership changes that the utility enacts during an active
rich client session are not reflected in the interface. You must restart
all active rich clients to get the changes. This is normally not an issue
because user access must be prohibited during the time critical period when
this utility is used.
A valid license key is required to use this utility for site consolidation
ownership changes.
The perform_highlevel argument enables the flip-the-switch ownership transfer
feature of this utility. By default, during flip-the-switch ownership
transfer, this utility uses the POM API to change object ownership. Therefore,
ownership changes that the utility enacts during an active rich client session
are reflected in the interface. You are not required to restart the active
rich clients to get the changes.
For better performance, you can set the TIE_flip_using_SQL preference to true
to use SQL calls during flip-the-switch ownership transfers. If you use this
preference setting, you must restart all active rich clients to get the changes.
A valid license key is not required to use this utility when you enable the
flip-the-switch feature.
Syntax
tcxml_xfer_ownership -u=user-name {-p=
-p=password | -pf=password-file} [-g=
-g=group]
-action={extract
-action= extract | perform | update_status |
perform_highlevel_dryrun}
perform_highlevel | perform_highlevel_dryrun
-inputfile=file-with-object-list]
[-inputfile=
-change_ownership_to= site-ID]
[-change_ownership_to=
[-dryrun -startDate=MM/DD/YYYY -endDate= MM/DD/YYYY ] [-source_extinct
-dryrun [-startDate= -source_extinct]
-source_extinct ]
-file=status-output-file]
[-file=
-report=report-file-name]
[-report=
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
When Security Services single sign-on (SSO) is enabled for your server,
the -u and -p arguments are authenticated externally through SSO, rather
than being authenticated against the database.
• If you do not supply these arguments, the utility attempts to join
an existing SSO session.
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. The file must be a single-line ASCII file
containing the password in clear text. Teamcenter Environment Manager prompts
you for a password and creates the password file during installation.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-action
Specifies whether to extract, perform, or update status.
extract
Generates the file for ownership transfer.
-change_ownership_to, -report
The -change_ownership_to -report, or -dryrun arguments are supported
for this action.
perform
Transfers the ownership at target site.
-inputfile, -file
The -inputfile -file, -source_extinct
-source_extinct, or -dryrun arguments are supported
for this action.
update_status
Updates the status at source site.
-inputfile, -change_ownership_to
The -inputfile -change_ownership_to, -source_extinct
-source_extinct, -report
-report, or -dryrun
arguments are supported for this action.
perform_highlevel
Performs a high-level (flip-the-switch) ownership transfer at the target
site
-inputfile
Specifies the name of the file containing the objects for ownership change.
-change_ownership_to
Specifies the site ID of the target site. This argument is required when
the utility is run at the source site. If this argument is omitted, the
utility uses the local site as the target site. If either the -dryrun or
the perform_highlevel_dryrun argument is specified, the ownership transfer
is not performed.
-dryrun
Generates a report to preview the ownership change of objects transferred by
the site consolidation tools, and identifies inconsistencies.
To preview the objects at the target site that are owned by the source site and
are inconsistent with the source site due to modifications made to them at the
target site post-replication, set the TIE_DRYRUN_VALIDATION=TRUE preference at
the target site.
The -startDate and -endDate arguments are valid only with the -dryrun argument.
The utility generates a dry run report for objects transferred within the date
range specified by the -startDate and -endDate values.
-startDate
Specifies the starting date for replicas and inconsistencies reported by the
-dryrun argument. This argument is used in conjunction with the -endDate
argument and is ignored if the -dryrun argument is not specified. The date
supplied must be in supplied in a MM/DD/YYYY format.
-endDate
Specifies the ending date for replicas and inconsistencies reported by the
-dryrun argument. This argument is used in conjunction with the -startDate
argument and is ignored if the -dryrun argument is not specified. The date
supplied must be in supplied in a MM/DD/YYYY format.
-source_extinct
Generates the list of replica items at the target site which are owned by the
source site and which were not transferred by site consolidation tools.
This argument can be used only when the -dryrun argument is used and is
ignored otherwise.
-file
Specifies the name of the output file (with an absolute path) that contains the
status of ownership transfer of the objects at the target site. This argument
is valid only for the site consolidation –action=perform argument.
-report
Specifies the name of the report file or extract file. This argument is valid
only for site consolidation actions.
Note
To use the dry run mode to check objects of an island owned by the source
site that are not covered in the accountability table for ownership
transfer, set the TIE_DRYRUN_VALIDATION preference to TRUE at the target
site.
For debug information, set the following environment variables:
• TC_SLOW_SQL=1
• TC_SQL_DEBUG=BJPT
Environment
As specified in the Manually configuring your environment for Teamcenter
utilities.
Files
As specified in the Log files produced by Teamcenter.
Restrictions
None.
Examples
• To run at the source site and extract to a file the objects for ownership
transfer:
tcxml_xfer_ownership -u=infodba -p=infodba -g=dba
-action=extract -report=D:\Temp\ownership_transfer_extract.txt
-change_ownership_to=target_site_id [-dryrun]
• To update the ownership transfer status or to generate report for a dry run
at the source site:
tcxml_xfer_ownership -u=infodba -p=infodba -g=dba
-action=update_status -inputfile=ownership_transfer_status.txt
-report=ownership_transfer_update_status.txt
-change_ownership_to=target_site_id [-dryrun]
You can construct the input file manually by copying the GSIdentity
elements from the TC XML files used for importing the objects.
upload_plmxml_struct
Uses the item ID and revision ID of the top node of the assembly and the
revision rule and executes the bomwriter utility with options specified in the
arguments. The PLM XML file generated is then attached as a named reference
to the DirectModelAssembly dataset.
Syntax
-u=user-id {-p=
upload_plmxml_struct [-u= -p=password | -pf=password-file} -g=group]
-item=item-id | -key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]]
[-item=
-rev=revision-id -rev_rule=revision-rule [-h-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-item
Specifies the item ID of the top node of the assembly structure.
-key
Specifies the key of the of the top node of the assembly structure.
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
validate_and_replicate_assembly
Validates an assembly with checks based on parameters and generates a PLM
XML file containing a list of all components in a configured assembly. The
utility gets a list of participating sites using the project that the assembly
root item is assigned to and invokes the replication mechanism to update
the assembly components to all the participating sites. Use this utility
only from a translator task to generate PLM XML output for an assembly that
is being released.
Syntax
-u=user-name {-p=
validate_and_replicate_assembly [-u= -p=password | -pf=password-file}
-g=group] -item_id= assembly-root -rev=revision -revision_rule= revision-rule
-variant_rule= rule-to-configure-BOM] [ -check_precise
[-variant_rule= -check_precise] [ -check_no_stubs
-check_no_stubs]
-check_all_released] [-h
[ -check_all_released -h]
-h
Arguments
Note
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value is the
password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
For HTTP enabled sites, remote site operations log on using the default
group for the user supplied with the -u argument. Any value supplied
with the -g argument is ignored.
-item_id
Specifies the top item in the assembly structure.
-rev
Specifies the top item revision used to configure the structure.
-revision_rule
Specifies the name of the revision rule used to configure the assembly.
-variant_rule
Specifies the variant rule used to configure the assembly. If not specified,
the default variant rule set at the site level is used.
-check_precise
Performs a validation check on the complete assembly to ensure that all sub
assemblies are precise.
-check_no_stubs
Performs a validation check on the complete assembly to ensure that there
are no stubs in the assembly.
-check_all_released
Performs a validation check on the entire assembly to ensure that all
components are released.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Examples
Note
harvest_mmv_index
Creates or updates the spatial cell index for a particular product specified
by an item revision. The spatial cell index describes the spatial structure of
the massive product data and is used by viewer clients to quickly load and
render the product geometry.
The utility traverses the product structure and locates all unconfigured
occurrences that contain a JT dataset. Each occurrence is identified by the
revision independent path from the root to this occurrence. The bounding
box information is computed for each occurrence, and the bounding box is
rolled up to the root coordinate system by applying the accumulated transform.
The rolled-up bounding boxes are used to create a spatial tree, which is
saved as an .mmv file. This .mmv file is uploaded as a named reference of a
Fnd0SpatialHierarchy dataset.
Syntax
-u=user-id {-p=
harvest_mmv_index [-u= -p=password | -pf=password-file} -g=group]
-item=item-id | -key=item-key | -itemuid= root-item][-rev=
[-item= -rev=revision]
-rev_rule=revisionRuleList][-log=
[-rev_rule= -log=file-name][-h=
-h=]
-h=
Arguments
-u
Specifies the user ID.
This is generally infodba or another privileged user. If this argument is
used without a value, the operating system user name is used.
Note
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to
be the password.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• item_id=000004),
To harvest a specific revision of a product (item_id=000004
item_id=000004 configured
Released, type the following
with revision rules Latest Working and Latest Released
command on a single line:
harvest_mmv_index -u=adminjones -p=passjones -g=admin –item=000004 –rev=001
–rev_rule=”Latest Working,Latest Released”
bomwriter
Emits a bill of materials (BOM), in a variety of file formats, to a nominated
file optionally restricted to selected areas of the BOM.
For example, you can use this utility to export product structure information
from Teamcenter to a PLM XML file that can be consumed by several applications.
If the size of the product structure is very large (several thousand
occurrences) you may run the export overnight. In such situations, consider
using the PLMXML_sdk_threshold preference to minimize memory consumption
during the export.
For more information about using this preference to serialize PLM XML objects,
therefore reducing memory consumption during large exports, see the Preferences
and Environment Variables Reference.
Syntax
-u=user-id {-p=
bomwriter [-u= -p=password | -pf=password-file} -g=group]
-noprompt]
[-noprompt
-noprompt [-h-h | -help
-help]
-bookmark=bookmark-file |
{-bookmark=
-item_list= input-file-name |
-item=item-name | -key=item-key}
-rev=revision]
[-rev=
-selected=input-file-name]
[-selected=
-subselected=input-file-name]
[-subselected=
-output_file=output-file-name]
[-output_file=
-revision_rule= configuration-rule]
[-revision_rule=
-show_substitutes=true | false
[-show_substitutes=true false]
-show_unconfigured=true | false
[-show_unconfigured=true false]
-show_unconfigured_occ_eff=true | false
[-show_unconfigured_occ_eff=true false]
-show_variants=true | false
[-show_variants=true false]
-view=view-type-name]
[-view=
-descendants=true | false
[-descendants=true false]
-flatten=true | false
[-flatten=true false]
-packed_window=true | false
[-packed_window=true false]
-transient_unpack=true | false
[-transient_unpack=true false]
-smstring=true | false
[-smstring=true false]
-svrule=saved-variant-rule-name]
[-svrule=
-format=format where format is one of the following:
index
psup
plmxml
ajt
Arguments
-u
Specifies the user ID.
This is generally infodba or another privileged user. If this argument is used
without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-noprompt
Specifies that if autologin fails, the system will not prompt for an
interactive login. This is a standard autologin option.
-help
Displays help for this utility.
-bookmark
Specifies a simple bookmark file from which to extract the default root item
ID, root revision ID, and revision rule (overruled by any revision rule
specified on the command line). The parsing of this file is primitive: one
complete XML element per line is expected.
-item_list
Specifies a list of item IDs, one per line, with optional output file names on
the same line. If no file name clause is provided, the default is itemid.format
without + options. These items are processed successively.
-item
Specifies the item ID for the root of the BOM structure.
-key
Specifies a string used to identify an item instead of specifying an item
using the -item and -rev arguments.
To find the key of an object, use the get_key_string utility.
-format=index
Format used with the -selected or -subselected option. No modifiers.
-format=psup
psup format with the +props=xxx modifier representing comma-separated BOM
line properties. You can also specify a delimiter using the delimiter
option. The default delimiter is a comma (,,).
For example, to specify the semicolon as a delimiter:
-format=psup+delimiter=;
+props=xxx
Comma-separated BOM line properties are exported.
+delimiter= x
Single-character delimiter is used to separate each column in the
output.
-format=plmxml
plmxml format with the following modifiers:
+strict
Minor errors are fatal.
+type= xxx
Use nondefault builder.
+tmode= xxx
Use nondefault transfer mode.
+transform=[None | Cumulative | Absolute]
Use specified transformType on Occurrence.
+locales= language_codes
Specifies the languages for the export. Separate multiple languages
fr_FR). The language IDs follow the
by commas (for example, en_US, fr_FR
en_US). If no locales
standard locale naming conventions (for example, en_US
are specified for export, the database scalar value (attribute master)
is exported to PLM XML scalar fields.
+ua= xxx
User attributes specifier.
The syntax is a combination of a target specifier followed by a key
specifier followed by a property specifier, all separated by commas.
For example:
+revid_off
Turn off revision ID in the PRV name attribute.
+varuid_on
Turn on variant UID.
+grdvua_on
Turn on user attributes for GRDVA in instance element.
-format=ajt
ajt format with the following modifiers:
+nt
ajt file attribute in Windows format. For example:
d:\folder\tk0404c2_mod_5q8050016xwq6.jt
+unix
ajt file attribute in UNIX format. For example:
/folder/tk0404c2_mod_5q8050016xwq6.jt
+native
ajt file attribute in machine-native (UNIX or Windows) format.
+uidtag
ajt file attribute in uidtag format. For example:
BVHRD95$lV1P$n$hD.jt
+identity
Causes a missing transform to become an identity transform rather than
a fatal error.
+strict
Minor errors are fatal.
+skip_fake_part
Skips dummy part for subassemblies.
+asm_jt_file
Outputs the associated JT files (if any) information for any
intermediate lines in the assembly.
-selected
Specifies the input file to nominate particular lines as selected, defaults
to the root line if none is selected. If the specified input file is empty,
the output should contain configuration information only (no BOM lines),
where supported.
Run bomwriter once with the -f=index argument, edit the resulting file to
remove lines that should not be selected, and run bomwriter again with the
same parameters, but -f to the format you want and -s indicating the edited
-f=index file.
Note
Review the index output file carefully before using it as the input for
this option. If the output contains any special characters, for example:
new line, the -selected option may not function properly.
-subselected
Specifies the subselected items file. Edit -f=index for format.
-descendants
Specifies whether descendants of selected lines should be included in the
true. Selected lines and
output, using true or false values. Defaults to true
ancestors of selected lines are always included.
-flatten
Presents the selected lines as a tree in which the root node is the immediate
parent of all selected lines. The transforms of the selected lines are
combined with the transforms of their ancestor's lines to compensate for their
false. Defaults to false
disappearance. Valid values are true and false false.
The -flatten argument reverses the default for the -descendants argument,
because the -flatten argument never needs descendent lines.
-packed_window
false. The default value
Use a packed BOM window. Valid values are true and false
false.
is false
Do not use with the PLM XML format.
-transient_unpack
false. The default value
Use transient unpacking. Valid values are true and false
false.
is false
Do not use with the PLM XML format.
-smstring
stdout. Valid values are true and false
Use smstring output, printed to stdout false.
false.
The default value is false
-revision_rule
Specifies a named revision rule. Defaults to the site default, frequently
the latest working revision.
-show_substitutes
Specifies that substitutes be shown. Defaults to the site default value.
-show_unconfigured
Specifies that unconfigured lines be shown. Defaults to the site default value.
-show_unconfigured_occ_eff
Specifies that lines unconfigured by occurrence effectivity be shown. Defaults
to the site default value.
-show_variants
Specifies that unconfigured variants be shown. Defaults to the site default
value.
-svrule
Specifies the BOM is to be configured based on the given saved variant rule.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• Run the bomwriter utility with the following arguments to write an AJT file
asciitojt) on the current platform where some, but
for compilation (using asciitojt
not all, BOM lines have transform matrices:
bomwriter -bookmark=somefile.bkm -format=ajt+native+identity
-output_file=somefile.ajt
• Run the bomwriter utility with the following arguments to write selected
parts of a BOM window in AJT format (without descendants). First, create
the index file from which to select parts:
bomwriter -item=XYZ001 -format=index -output_file=xyz001.index
• Edit the selected.index file to remove various lines and then run the
utility as follows:
bomwriter -item=XYZ001 -format=ajt+native -selected=xyz001.index
-descendants=false -output_file=xyz001.ajt
• The following command calls the bomwriter utility with PLM XML format
output on item1 and produces the Export_WithTranslations.plmxml file.
It also writes the bl_item_object_desc BOM line property as Item_Desc
UserData under the Occurrence element. The French and German translations
of the localized properties on item1 are also exported to Text elements.
bomwriter -u=user -p=password -g=group -item=item1
-output_file=Export_WithTranslations.plmxml
-format=plmxml+ua=target:Occurrence,key:"Item_Desc",prop:
"bl_item_object_desc"+locales=fr_FR,de_DE
harvester.pl
Updates the QPL database with the latest changes in the product structure.
The QPL database is used when performing spatial and attribute queries. Use
the -run_level argument to run this utility in a setting similar to a UNIX
crontab command, allowing you to achieve a finer level of granularity and
control with this utility.
Note
Syntax
-u=user-id {-p=
$QPL_ROOT/scripts/harvester.pl [-u= -p=password | -pf=password-file}
-g=group] -run_level= value -k -l -r -v -h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-run_level
Defines which component of the harvester process is to be run:
1= update_structure
2= ug_spacemap
3= update_structure + ug_spacemap
4= QPL upload
5= update_structure + QPL upload
6= ug_spacemap + QPL upload
7= update_structure + ug_spacemap + QPL upload
-k
Preserves the intermediate files created by the ug_spacemap utility.
-l
Specifies symbolic links followed in UNIX.
-r
Recursively searches the search directory specified in the options.txt file.
-v
Logs the current status of the executables run by this utility in to the
terminal.
-h
Displays help for this utility.
Environment
The environment variables are provided by the variables defined in the
$QPL_ROOT/qpldata/options.txt file and the $QPL_ROOT/qpldata/config.txt file.
This script uses all the variables defined in the two aforementioned files as
environment variables. For more information regarding the variables, see the
options.txt file in the $QPL_ROOT/qpldata directory.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
The following examples demonstrate use of this utility in a command line and
also in a crontab setting, which is most likely to be used in a production
environment.
• The following command runs the utility at run level 7, which runs all
possible executables. These are run on bookmark files located in the search
directory pointed to by the QPL_H_root_dirs variable in the options.txt
file in the $QPL_ROOT/qpldata directory:
harvester.pl
• The following command runs the utility at run level 3 on the bookmark file
named BOOKMARK1.bkm in the directory from which the utility is being run:
harvester.pl BOOKMARK1.bkm -run_level=3
• The following command runs the utility at run level 7 on bookmark files
found in the directory named anyDir, which is a subdirectory existing
in the current directory:
harvester.pl anyDir
harvester_jt.pl
Updates the QPL database with the latest changes in the product structure
based on the tessellated representation of the assembly. The QPL database is
used when performing spatial and attribute queries.
Note
Syntax
-u=user-id {-p=
$QPL_ROOT/scripts/harvester_jt.pl [-u= -p=password | -pf=password-file}
-g=group] -zone_min=x1, y1, z1 -zone_max=x2, y2, z2 -k -l -r -v
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-zone_min
Defines the minimum coordinates of the two-dimensional plane to be considered
while generating the occupancy map. It is provided in an x1, y1, z1 format.
-zone_max
Defines the maximum coordinates of the two-dimensional plane to be considered
while generating the occupancy map. It is provided in an x2, y2, z2 format.
-k
Preserves the intermediate files created by the ug_spacemap utility.
-l
Symbolic links followed in UNIX.
-r
Recursively searches the search directory specified in the options.txt file.
-v
Logs the current status of the executables run by the harvester_jt.pl utility
into the terminal.
-h
Displays help for this utility.
Environment
The environment variables are provided by the variables defined in the
$QPL_ROOT/qpldata/options.txt and the $QPL_ROOT/qpldata/config.txt files.
This script uses all the variables that are defined in the two aforementioned
files as environment variables. For more information regarding the variables,
refer to the options.txt file in the $QPL_ROOT/qpldata directory.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
The following examples demonstrate use of this utility in a command line:
• The following command runs the utility on the bookmark file named
BOOKMARK1.bkm in the directory from which the utility is being run:
harvester_jt.pl BOOKMARK1.bkm
• The following command runs the utility on bookmark files found in the
directory named anyDir, which is a subdirectory existing in the current
directory:
harvester_jt.pl anyDir
qpl_convert_occs2tc
Converts the NX subfile-ID instance paths to Teamcenter occurrence unique
identifier (UID) instance paths in the attribute data file. This attribute data
file is generated by the ug_spacemap utility. The utility updates the attribute
data file as well as the schema file. It is mandatory to provide a name for
the attribute file as well as the schema file as part of the input parameters.
The utility uses the UG ENTITY HANDLE attribute on a BOM line to generate the
subfile-ID string from the BOM line.
Entity handles are generally in the following format:
0 n n + 8 n + 16
----------------------xxxxxxxxxx--------------end
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-item
Specifies the item ID for the root of the BOM structure.
-key
Specifies a string used to identify an item instead of specifying an item
using the -item and -rev arguments.
To find the key of an object, use the get_key_string utility.
For more information, see the Business Modeler IDE Guide.
-rev
Specifies the item revision for the root of the BOM structure.
-revision_rule
Specifies a named revision rule. Defaults to the site default, frequently
the latest working revision.
-view
Specifies the view to be used.
-attr_file
Specifies the file to contain the converted attributes.
-schema_file
Specifies the file to contain the converted schema.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
rdv_context_download
Evaluates or reevaluates a structure context object (SCO) and writes
DesignContext information and user attributes into a PLM XML or AJT
BOMWriter)
(BOMWriter
BOMWriter file. The contents of the SCO can represent the entire product
or a subassembly. The information written into the PLM XML file depends on
the specified input transfer mode.
The output file is used to facilitate the sharing of data between users,
programs, or sites using Multi-Site Collaboration. You can download this file
to the operating system or import it into Teamcenter as a dataset.
This utility can process a single SCO, a list of SCOs, or all SCOs in a
specified folder. If you process a list or folder of SCOs, a separate PLM XML
file is generated for each SCO. It can also accept a saved query as input.
If you use Multi-Site Collaboration, the validate_and_replicate_assembly
utility can consume the PLM XML files created by this utility and replicate
them across sites.
If the output PLM XML file is in BOMWriter format, you can launch it in
Lifecycle Visualization.
Syntax
rdv_context_download
-item_id=item-ID] | -key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]]
[-item_id=
-rev_id=revision-ID] [-variant_rule_name=
[-rev_id= -variant_rule_name= variant-rule-name]
-revision_rule_name= revision-rule-name] [-engg_change_id=
[-revision_rule_name= -engg_change_id= engineering-change-ID |
-engg_change-key= [keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
-folder_name=folder-name] [-process_name=
[-folder_name= -process_name= process-name]
-zone_name=zone-name] [-zone_type=
[-zone_name= -zone_type=BOX | PLANE]
-operator=BOX(Within | Outside | Interferes) | Plane(Above | Below | Intersects)]
[-operator=
-sco_download= yes | true | YES | TRUE]
[-sco_download=
-user_attribute= user-attribute]
[-user_attribute=
-sco_name(s)=StructureContextObjectName(s) |
[-sco_name(s)=
-saved_query_name= Teamcenter-saved-query-name |
-sco_folder= Teamcenter-folder-name] [-transfer_mode=
-transfer_mode= transfer-mode-name]
-output_format= BOM_writer FormatAJT | PLMXML |
-output_format=BOM_writer
[-output_format=
PIEPIE-PLMXML] [-file-name=
-file-name=file-name-without-extension]
-absolute_path= path-of-file-to-be-stored-without-extension] [-h
[-absolute_path= -h]
-h
Arguments
-item_id
Specifies the item ID.
-key
Specifies the key of the item. Use the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
-variant_rule_name
Specifies the name of the variant rule configuring the structure.
-revision_rule_name
Specifies the name of the revision rule configuring the structure, which
defaults according to the TC_config_rule_name preference.
-engg_change_id
Specifies the engineering change item ID. The utility configures an RDV context
based on change attachments and the latest engineering change revision.
-engg_change_key
Specifies the key of the engineering change item. The utility configures an RDV
context based on change attachments and the latest engineering change revision.
To find the key of an object, use the get_key_string utility.
For more information, see the Business Modeler IDE Guide.
-folder_name
Configures a context based on attachments of the
folder/envelope/engineering-change-revision-name.
The attachments include the following:
• One product item revision
• WebDesignContextDefaultSearchDistance
• PortalDesignContextMaxMatchingObjects
• PortalDesignContextMaxMatchingBOMLines
For more information, see the Preferences and Environment Variables
Reference.
-process_name
Specifies the name of the workflow processes that have not yet completed.
-zone_name
Specifies the name of the zone. When both the -zone_name and -zone_type
arguments are specified, the utility performs a search according to the
preference settings.
-zone_type
PLANE. The -zone_name argument
Specifies the type of the zone, either BOX or PLANE
must be used in conjunction with the -zone_type argument.
-operator
Specifies the zone type operator. Valid values for the BOX zone type are
Within, Outside
Within Outside, or Interferes
Interferes; the default value is Within
Within. Valid values for
Above, Below
the PLANE zone type are Above Below, and Intersects
Intersects; the default value is
Intersects. The -zone_name and -zone_type arguments must be specified in
Intersects
conjunction with the -operator argument.
Note
-sco_download
Specifies if the SCO should be downloaded.
-user_attribute
Specify user attributes in the same format described for the bomwriter utility.
-sco_name
Specifies the name of the structure context object from which a PLM XML is
generated. You can specify more than one SCO as a comma-separated list, for
example:
SCO1,SCO2,SCO3
-saved_query_name
Specifies the name of a Teamcenter saved query that retrieves a set of SCOs to
process for given search criteria.
-sco_folder
Specifies the name of a Teamcenter folder that contains a set of SCOs to
process.
-transfer_mode
Specifies the name of a transfer mode to generate the PLM XML file. If no mode
is specified, the SCOs are evaluated with the default transfer mode.
-output_format
Specifies the output file format, either BOM writer PLM XML or AJT, or PIE
PLM XML. The default format is BOM writer PLM XML.
-file_name
Specifies the name of the output file to which the data is output. Provide
the file name without an extension.
-absolute_path
Specifies the full path of the AJT or PLM XML file where the data is
to be stored. If not specified, the utility looks at the value of the
RDVContextDownloadDirectory preference. Otherwise, the current working
directory is used as the default path.
Note
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities
and the RDV_debug environment variable. If this variable is set, the Teamcenter
syslog file contains additional debugging information.
Files
As specified in Log files produced by Teamcenter.
Restrictions
You must have the necessary create or modify privileges to successfully run
this utility. If you do not have the appropriate privileges, data is not
imported and an error message is written to the log file.
Examples
• The following example creates a PLM XML file called TL109375 and uses the
TC_config_rule_name preference to determine the revision rule:
$TC_ROOT/bin/rdv_context_download -item_id=TL109375 -rev_id=004
• The following example logs in as the infodba user and creates a PLM XML
11_21_sco1_a::
file named 11_21_sco1_a:
$TC_ROOT/bin/rdv_context_download -sco_name=11_21_sco1_a -u=infodba
-p=infodba -g-dba
• The following example prompts the user for autologin and creates a PLM
assy_ajt_file:
XML file named assy_ajt_file
$TC_ROOT/bin/rdv_context_download -folder=test_assy
-filename=assy_ajt_file
The following code shows the PLM XML file created by this example.
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
<?xml version="1.0" ?>
<PLMXML xmlns="http://www.plmxml.org/Schemas/PLMXMLSchema"
schemaVersion="4" date="2004-01-21" time="06:03:46" author="unset">
<ProductDef id="id1">
<InstanceGraph id="id2" rootRefs="id4">
<Instance id="id25" partRef="#id16" transformRef="id27" representationRefs="#id22">
<UserData id="id26">
.
.
.
<Transform id=”id945”>-1 0 0 0 0 -1 0 0 0 0 1 0 -0.00735251986233691 -1.48797584060841
-0.160362350011722 1</Transform></Occurrence>
<Occurrence id="id963" transformRef="id965" partRef="#id949"
instanceRefs="#id958" representationRefs="#id955"> <UserData id="id964">
<UserValue value="//998845" title="UGOCC_SUBFILEID"></UserValue>
<UserValue value="None" title="UGOCC_REFSET"></UserValue>
<UserValue type="boolean" value="true" title="__PLM_REASON_SELECTED"></UserValue>
</UserData><Transform id="id965">1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1</Transform>
</Occurrence></ProductView></ProductDef></PLMXML>
&?>&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
• The following example prompts the user for autologin and creates an ASCII
assy_ajt_file:
JT assembly file named assy_ajt_file
$TC_ROOT/bin/rdv_context_download -folder=assy_folder
-filename=assy_ajt_file -bom_writer_format=AJT
The following code sample shows the sample AJT file created in this example.
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
# DirectModel ASCII file - version 1.0
# Written by BOMWriterFormatAJT Teamcenter
Wednesday, 01/21/2004 05:56:39PM
0 ASM "AC7192-Product Book 2.asm;0;0:"
ATTR Type="STRING" Key="DB_PART_NO" Value="AC7192"
ATTR Type="STRING" Key="DB_PART_REV" Value="A"
ATTR Type="STRING" Key="__PLM_ITEMREV_UID" Value="Q1_o4OCyn6c4PB"
ATTR Type="STRING" Key="DB_OCC_UID" Value="AAAAAAAAAAAAAA"
1 ASM "0728-045.asm;1885772752;-1684155971:"
ATTR Type="STRING" Key="DB_PART_NO" Value="0728-045"
ATTR Type="STRING" Key="DB_PART_REV" Value="A"
ATTR Type="STRING" Key="__PLM_ITEMREV_UID" Value="QX9o4OCyn6c4PB"
ATTR Type="STRING" Key="DB_OCC_UID" Value="0z$o4OCyn6c4PB"
Matrix [ 1.000 0.000 0.000 0.000 ]
[ 0.000 0.998 -0.067 0.000 ]
[ 0.000 0.067 0.998 0.000 ]
[ -5.646 0.375 -0.150 1.000 ]
2 PRT "1602-023.prt;-1968592985;273560760:"
2 PRT "1602-023.prt;-1968592985;-1738192227:"
2 PRT "1602-017.prt;1215126988;-365534238:"
2 PRT "1602-016.prt;-935130874;-619873730:"
2 PRT "1602-016.prt;-935130874;-650811331:"
1 PRT "H02976.prt;-1812813847;-640191115:"
1 PRT "E6895.prt;-1559507236;-2122085832:"
1 PRT "H02592.prt;1415580139;939946980:"
1 PRT "E6820.prt;-963798381;458164065:"
1 PRT "ERG056.prt;-1508967178;210332543:"
1 PRT "1606-177.prt;80810929;-396904688:"
# end
&?>&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
rdv_migrate_architecture
Effective from Teamcenter 2007.1 MP7, Platform Designer allows you to revise
architecture breakdowns and carry forward all architecture breakdown elements
(ABEs), variability, named variant expressions (NVEs) and part solutions to
the next revision. Architectures created in previous versions of Teamcenter
are not compatible with the current format and must be updated.
Use this utility to update all existing ABEs to the new format. After
migration, each ABE is associated with two sets of appearance path nodes
(APNs) and each APN is linked to an AbsOccData object. One AbsOccData object
has its immediate parent as the context and the other AbsOccData object has
the top-level architecture of the architecture breakdown as its context. The
true, and the second
suppression flag on the first AbsOccData object is set to true
false.
suppression flag is set to false
Note
Syntax
-u=user-id {-p=
rdv_migrate_architecture [-u= -p=password |
-pf=password-file} -g=group]
-arch_ItemId<TOP-ARCH-ID> |
{-arch_ItemId
-arch_key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]]}
[-arch_key=
-arch_RevId <TOP-ARCH-REVISION-ID>
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-arch_ItemId
Specifies the item ID of the top architecture element.
-arch_key
Specifies the keys of the item to track. Use the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities
and the RDV_debug environment variable. If this variable is set, the syslog
file contains additional debugging information.
Files
As specified in Log files produced by Teamcenter.
Restrictions
Run this utility with a user ID that has sufficient permissions to create
tasks and to write to the specified architecture breakdown and ABE objects
in the database.
Examples
• The following example migrates a top architecture element with an item ID
architecture001:
of architecture001
rdv_migrate_architecture -u=infodba -p=infodba -g=dba -arch_ItemId=architecture001
rdv_migrate_part_solutions
Effective from Teamcenter 2007.1 MP7, Platform Designer allows you to revise
architecture breakdowns and carry forward all architecture breakdown elements
(ABEs), variability, named variant expressions (NVEs) and part solutions to
the next revision. Part solutions created in previous versions of Teamcenter
are not compatible with the current format and must be updated.
Use this utility to migrate existing part solution data to the current format.
The utility takes the top architecture element of an existing breakdown and
fetches all the lines of usage for each of the ABEs in that breakdown. It then
creates a LOUHOLDER holder under the top line, if one does not already exist.
It adds all the part solutions under this holder and associates them with the
corresponding ABEs with Appearance Group relations.
Note
Syntax
-u=user-id {-p=
rdv_migrate_part_solutions [-u= -p=password |
-pf=password-file} -g=group]
-arch_ItemId<TOP-ARCH-ID> |
{-arch_ItemId
-arch_key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]]}
[-arch_key=
-arch_RevId= <TOP-ARCH-REVISION-ID>
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-arch_ItemId
Specifies the item ID of the top architecture element.
-arch_key
Specifies the architecture breakdown keys of the item to track. Use the
following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
-arch_RevId
Specifies the revision identifier of the same top architecture element.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities
and the RDV_debug environment variable. If this variable is set, the syslog
file contains additional debugging information.
Files
As specified in Log files produced by Teamcenter.
Restrictions
Run this utility with a user ID that has sufficient permissions to create tasks
and to write to the specified objects in the database.
Examples
• The following example migrates the part solutions in a top architecture
element with an item ID of architecture001 and revision identifier of
architecture001Rev1:
architecture001Rev1
rdv_migrate_part_solutions -u=infodba -p=infodba -g=dba
-arch_ItemId=architecture001 -arch_RevId=architecture001Rev1
rdv_run_audit_report
Generates audit reports that report the information related to mismatches that
exist between VAS CAD structure and usage data that is imported into Teamcenter.
Audit reports allow you to check that design solutions exist for each option
combination (NVE) required on the architecture elements. This feature assumes
you use both part and design solutions; if you use only part solutions, do
not use this report.
Note
You create audit reports for design solutions in Structure Manager. Use
Platform Designer to create audit reports for part solutions.
• If the NVE is referenced by one or more solutions, but none of them have
an architecture element ID that matches that of the NVE. The audit report
delivers a list of architecture breakdowns in rows, with colored indicators
specifying whether the line is an exact, partial, or mismatch with respect
to an NVE, part number (typically the part solution ID), and usage quantity.
The audit algorithms use data stored in occurrence notes on the design
solution. It is therefore necessary to replace a design in the product using
the Replace Design in Product wizard before the audit can be run to populate
the appropriate occurrence notes. These occurrence notes are:
Usage_Product
Usage_PartNumber
Usage_Quantity
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-product_id
Specifies the item ID of the top-level product.
-product_key
Specifies the key of the top-level product. This argument can be used to
identify an item instead of the -product_id argument.
To find the key of an object, use the get_key_string utility.
For more information, see the Business Modeler IDE Guide.
-product_rev_id
Specifies the item ID of the top-level product revision.
-v_rule
Specifies the saved variant rule.
-rev_rule
Specifies a named revision rule. Defaults to the site default, frequently
the latest working revision.
-input_file
Specifies the path to the file used for input when you use the -product_id
argument.
-keys_input_file
Specifies the path to the file used for input when you use the -product_key
argument.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
rdv_set_default_variant_condition
Checks whether the input item has any qualified occurrences attached to it and
sets a default variant condition on them so that the occurrence can participate
in variant configuration. This utility configures the structure using the
revision rule provided as input. If the revision rule is not specified, it
uses the default revision rule.
This utility also sets the variant condition specified as input. If the
variant condition is not specified then it uses the variant condition specified
in the RDV_default_variant_condition preference.
Syntax
-u=user-id {-p=
rdv_set_default_variant_condition [-u= -p=password | -pf=password-file}
-g=group]
-item=item-ID | -key=key-ID]
[-item=
-revision_rule= revision-rule-name]
[-revision_rule=
-variant_condition= condition-name
-delimiter= delimiter-string
-qualified_occu_scan_depth= depth
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another privileged user. If this argument is used
without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-item
Specifies the ID of the item to be used for the variant condition.
-key
Specifies a string used to identify an item instead of specifying an item
using the -item argument.
To find the key of an object, use the get_key_string utility.
For more information, see the Business Modeler IDE Guide.
-revision_rule
Specifies a named revision rule. Defaults to the site default, frequently
the latest working revision.
-variant_condition (Optional)
Specifies the variant condition.
-delimiter (Optional)
Specifies the delimiter to place between records.
-qualified_occu_scan_depth (Optional)
Specifies the level to scan occurrences.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• The following example configures the structure using default revision rule,
scans the item for null variant components, and sets the default variant
condition specified in preference files:
rdv_set_default_variant_condition –item_id=TL109375
• The following example configures the structure using the latest working
revision rule, scans the item for null variant components, and sets the
default variant condition specified in preference files:
rdv_set_default_variant_condition –item_id=TL109375
-revision_rule=Latest Working
• The following example configures the structure using the latest working
revision rule, scans the item for null variant components, and sets the
Color=Red)
variant data (Color=Red
Color=Red on null variant components:
rdv_set_default_variant_condition –item_id=TL109375
-revision_rule=Latest Working –variant_condition=002763:Color:Red
start_sco_dispatcher
Starts the structure context object (SCO) dispatcher to initiate the transfer
of SCOs created by the rdv_context_download utility to other sites. The
validate_and_replicate_assembly utility subsequently consumes the PLM XML files
created by the rdv_context_download utility and replicates them across sites.
Syntax
-u=user-id {-p=
start_sco_dispatcher [-u= -p=password | -pf=password-file} -g=group]
-saved_query_name= Teamcenter-saved-query-name |
-sco_folder= Teamcenter-folder-name |
-sco_list= list-of-scos | -sco_name= StructureContextObjectName
-site_name= Destination-site-name | -site_url= Destination-site-url
-transfer_mode= transfer-mode-name] [-dataset_time_interval=
[-transfer_mode= -dataset_time_interval= time-interval]
-user_attrs=user-attributes] [-h
[-user_attrs= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-sco_name
Specifies the name of the SCO from which a PLM XML file is generated. You can
specify more than one SCO in a comma-separated list, for example:
SCO1,SCO2,SCO3
-sco_list
Specifies a list of SCOs to process. You can specify more than one SCO in
a hash-separated list, for example:
SCO1#SCO2#SCO3
-saved_query_name
Specifies the name of a Teamcenter saved query that retrieves a set of SCOs to
process for given search criteria.
-sco_folder
Specifies the name of a Teamcenter folder that contains a set of SCOs to
process.
-transfer_mode
Specifies the name of a transfer mode to generate the PLM XML file. If no mode
is specified, the SCOs are evaluated with the default transfer mode.
-site_name
Specifies the names of the sites with databases to which Teamcenter sends the
SCOs. You can specify more than one site in a hash-separated list, for example:
Site1#Site2#Site3
-site_url
Specifies the URLs of the sites to which Teamcenter sends the SCOs. Use URLs,
rather than site names, if the target sites do not have databases. You can
specify more than one URL in a hash-separated list, for example:
Site1#Site2#Site3
-dataset_time_interval
Specifies the interval in minutes at which the rdvcontextdownload translator
generates PLM XML files. If no interval is specified, the default value of 60
minutes is used.
-user_attribute
Specify user attributes to include in the PLM XML file. The specified
attributes must be BOM line properties. You can specify more than one user
attribute as a hash-separated list, for example:
Owningsitename#ItemID#RevisionID##last_mod_date
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
• You must have the necessary create or modify data privileges to successfully
run this utility. If you do not have the appropriate privileges, data is
not imported and an error message is written to the log file.
• If the utility evaluates an SCO and identifies that the target BOM lines
are not valid, it exits and displays an error message to the user. It
does not process any further SCOs.
Examples
• The following example runs a saved query called SCO_SQR to transfer SCOs to
a single database site using Multi-Site Collaboration:
start_sco_dispatcher -saved_query_name=SCO_SQR -site_name=testsite
-dataset_time_interval=120
sync_product_apns
Enables a site to synchronize product appearance path nodes (APNs) with other
sites. The utility also synchronizes the absolute occurrence data that is
associated with these APNs. In addition, it also synchronizes item revision
attachments with the RDV_appgrp_toplevel_relation relationship type. In
RDV, this attachment type associates part usage occurrence groups with an
architecture revision. Part usage occurrence groups are workspace objects
that collect one architecture element (APN) and all corresponding part usage
occurrences (APNs). A part usage references its architecture element by means
of this part usage occurrence group. Because RDV_appgrp_toplevel_relation
attachments are handled with this utility, Siemens PLM Software recommends you
exclude this relationship when replicating the architecture revision with the
data_sync or data_share utilities.
This utility is similar to the sync_product_variant_data utility in that
it synchronizes occurrence data, occurrence roots, APNs etc. while the
sync_product_variant_data utility synchronizes variant data, such as variant
objects, variant revision objects, item revision expressions, and NVEs.
This utility operates in the following modes and each mode has different
mandatory and optional arguments:
• Export to disk
Use of the -item argument indicates that the utility runs in export mode.
Note that either -dir=directory-name or -count are required as indicated
with the { | } notation.
Syntax
• Export to disk
-u=user-id {-p=
sync_product_apns[-u=
sync_product_apns -p=password | -pf=password-file} -g=group]
-item=item-id | -key=key-id] [-arch
[-item= -arch] -bypass]
-arch [-bypass
-bypass
-site=site-name [-reason=
-reason=text]
-dir=directory-name [-tag_list=
{-dir= -tag_list=file-name [-from=
-from=number] [-to=
-to=number] ]
-tag_list=file-name] }
-count[-tag_list=
| -count
-modified_only]
[-modified_only -debug]
-modified_only [-debug
-debug
-exclude_variants]
[-exclude_variants
-exclude_variants
-silent]
[-silent -rollback_on_failure]
-silent [-rollback_on_failure
-rollback_on_failure
Arguments
-dir
Specifies a local directory name. The utility writes exported data into this
directory. If the directory exists, it must not contain export data.
For export mode, the directory may or may not exist. If the directory exists,
it must not contain exported data, for example, it must not have been used
as an export directory in a previous run. For send or read/import modes, the
directory must exist and must contain export data.
-item
Item ID of the item of which appearance and absolute occurrence data is to
be exported.
-key
Specifies the key of the object. The -key argument can be used instead of
the -item argument.
To find the key of an object, use the get_key_string utility.
For more information, see the Business Modeler IDE Guide.
-arch
Exports appearance and absolute occurrence data of the architecture items that
are associated with the item specified with the -item argument.
-site
This argument can only be used with the export or send modes; it cannot be
used in read/browse mode.
• Export mode
Specifies the sites to which objects are to be replicated. Upon exporting
an object, the utility creates one export record for each site if this
object type supports export records. Export records contain the time of
export to support incremental replication. If the user requests a roll
back at the end of the utility, all export records that were generated
during export are rolled back.
• Send mode
Specifies the sites to which objects are to be sent. This mode requires an
IDSM service to be available at the remote site. If multiple -site switches
are used to specify multiple sites, the export directory is sent to each
site sequentially. For better throughput, run separate processes for each
site instead of running one process for multiple sites.
-count
Reports the number of objects to export. If used with the -modified_only
argument, the count indicates the number of changed objects that need to be
replicated to at least one of the sites specified with the -site argument. If
used with the -tag_list argument, a tag list file is written.
-exclude_variants
Causes the export to exclude objects of either the Variant or VariantRevision
class that are attached to the item specified with the -item argument. This
argument is useful when exporting in multiple batches. If this option is not
set, each batch contains all variant options referenced from its expressions
causing multiple batches to contain an overlapping set of objects. Overlapping
sets of objects cannot be imported in parallel.
-apn_roots_only
Specifies to only export appearance path node roots and absolute occurrence
data qualifiers. If this argument is not specified, these objects are excluded.
-silent
Disables rollback capability and rollback confirmation dialog and executes in
silent mode.
-rollback_on_failure
ITK_ok.
Automatically rolls back on any error code other than ITK_ok
-debug
Turns on verbose mode that generates a detailed export and modified dates.
-bypass
Disables access control. You must have DBA privileges to use this argument.
-modified_only
Specifies to only export objects that have changed since they were exported to
the sites specified by the -site argument.
Note
-reason
Specifies the reason for export. The maximum number of characters is 240.
If no reason is specified, the command line of running the export utility
is used as the reason text.
-from
Specifies the index of the first object to be exported. The default value
is zero.
export, send
Use this argument for export send, and read/import modes. In export and send
mode, the index refers to the tag list file specified with the -tag_list
argument. Otherwise, it refers to the object list in the export data located
in the directory specified with the -dir argument.
-to
Specifies the index of the object following the last object to process. For
-to=10, the object at index 9 is the last object
example, if you specify -to=10
to be processed.
export, send
Use this argument for export send, and read/import modes. In export and send
mode, the index refers to the tag list file specified with the -tag_list
argument. Otherwise, it refers to the object list in the export data located
in the directory specified with the -dir argument.
-tag_list
Specifies a file name containing a list of object UIDs to export. This file is
written if the -count argument is specified. If the -count argument is not
specified, the file is read.
-browse
Specifies to browse objects in the export area without exporting or importing.
-u
Specifies the user ID.
This is a required argument unless the TC_auto_login site preference is set.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
This is a required argument unless the TC_auto_login site preference is set.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
This is a required argument unless the TC_auto_login site preference is set.
If used without a value, the user's default group is assumed.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
To bypass the export of named variant expressions, set the RDV_export_nve
FALSE.
environment variable to FALSE
When using the data_share and data_sync utilities, Siemens PLM Software
recommends you exclude APN and NVE synchronization by setting the following
environment variables:
• TC_EXCLUDE_APN=TRUE
• RDV_export_nve=FALSE
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
1. Export to disk all appearance path nodes, absolute occurrences, and
RDV00190, excluding the item itself:
absolute occurrence data on item RDV00190
sync_product_apns -u=infodba -p=*** -g=dba
-bypass -dir=C:\Temp\RDV00190_apns -item=RDV00190
-site=cologne -site=turin
3. Export to disk all modified appearance path nodes, absolute occurrences, and
RDV00190, and its architecture breakdowns:
absolute occurrence data on item RDV00190
sync_product_apns -u=infodba -p=*** -g=dba
-bypass -dir=C:\Temp\RDV00190_apns -item=RDV00190 -arch
-modified_only -site=cologne -site=turin
5. Export to disk object index numbers 1,000 through 1,999 of all appearance
path nodes, absolute occurrences, and absolute occurrence data of item
RDV00190, along with appearance path nodes, absolute occurrences, and
RDV00190
absolute occurrence data of associated architecture breakdowns. Objects
are exported as determined in example 4.
The -exclude_variants argument causes variant and variant revision objects
associated with item RDV00190 to be excluded. This allows exporting variant
data with the sync_product_variant_data utility in parallel.
sync_product_apns -u=infodba -p=*** -g=dba
-bypass -dir=C:\Temp\RDV00190_apns -item=RDV00190 -arch
-site=cologne -site=turin -from=1000 -to=2000
-exclude_variants -tag_list=uid.txt
6. Export to disk object index numbers 1,000 through the end of all appearance
path nodes, absolute occurrences, and absolute occurrence data of item
RDV00190, along with appearance path nodes, absolute occurrences, and
RDV00190
absolute occurrence data of associated architecture breakdowns:
sync_product_apns -u=infodba -p=*** -g=dba
-bypass -dir=C:\Temp\RDV00190_apns -item=RDV00190 -arch
-site=cologne -site=turin -from=1000 -exclude_variants
9. Send object index numbers 1,000 through 1,999 in export area to Turin:
sync_product_apns -u=infodba -p=*** -g=dba
-dir=C:\Temp\RDV00190_apns -site=turin -from=1000 -to=2000
12. Import object index numbers 1,000 through 1,999 in import area:
sync_product_variant_data -u=infodba -p=*** -g=dba
-dir=C:\Temp\RDV00190_apns-from=1000 -to=2000
sync_product_variant_data
Enables sites to synchronize product variant data with other sites.
This utility is similar to the sync_product_apns utility in that it
synchronizes variant data, such as variant objects, variant revision objects,
item revision expressions, and NVEs while the sync_product_apns utility
synchronizes occurrence data, occurrence roots, APNs, and so forth.
This utility operates in the following modes and each mode has different
mandatory and optional arguments:
• Export to disk
Using the -item argument indicates that the utility runs in export mode.
Note that either -dir=directory-name or -count are required as indicated
with the {||} notation.
-from=number] [-to=
[-from= -to=number]
-silent]
[-silent -rollback_on_failure]
-silent [-rollback_on_failure
-rollback_on_failure
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-dir
Specifies a local directory name. The utility writes exported area into this
directory. If the directory exists, it must not contain export data.
For export mode, the directory may or may not exist. If the directory exists,
it must not contain exported data, for example, it must not have been used
as an export directory in a previous run. For send or read/import modes, the
directory must exist and must contain export data.
-item
Specifies the item ID of the item of which variant data is to be exported.
-key
Specifies the key of the object. The -key argument can be used instead of
the -item argument.
To find the key of an object, use the get_key_string utility.
• send mode
Specifies the sites to which objects are to be sent. This mode requires an
IDSM service to be available at the remote site. If multiple -site switches
are used to specify multiple sites, the export directory is sent to each
site sequentially. For better throughput, run separate processes for each
site instead of running one process for multiple sites.
-count
Reports the number of objects to export. If used with the -modified_only
argument, the count indicates the number of changed objects that need to be
replicated to at least one of the sites specified with the -site argument. If
used with the -tag_list argument, a tag list file is written.
-exclude_variants
Causes the export to exclude objects of either the Variant or VariantRevision
class that are attached to the item specified with the -item argument. This
argument is useful when exporting in multiple batches. If this option is not
set, each batch contains all variant options referenced from its expressions
causing multiple batches to contain an overlapping set of objects. Overlapping
sets of objects cannot be imported in parallel.
-silent
Disables rollback capability and rollback confirmation dialog and executes in
silent mode.
-rollback_on_failure
ITK_ok.
Automatically rolls back on any error code other than ITK_ok
-debug
Turns on verbose mode, which generates a detailed report of export and
modified dates.
-bypass
Disables access control. You must have DBA privileges to use this argument.
-modified_only
Specifies to only export objects that have changed since they were exported to
the sites specified by the -site argument.
Note
-reason
Specifies the reason for export. The maximum number of characters is 240.
If no reason is specified, the command line of running the export utility
is used as the reason text.
-from
Specifies the index of the first object to be exported. The default value
is zero.
export, send
Use this argument for export send, and read/import modes. In export and send
mode, the index refers to the tag list file specified with the -tag_list
argument. Otherwise, it refers to the object list in the export data located
in the directory specified with the -dir argument.
-to
Specifies the index of the object following the last object to process. For
-to=10, the object at index 9 is the last object to
example if you specify -to=10
be processed.
export, send
Use this argument for export send, and read/import modes. In export and send
mode, the index refers to the tag list file specified with the -tag_list
argument. Otherwise, it refers to the object list in the export data located
in the directory specified with the -dir argument.
-tag_list
Specifies a file name containing a list of object UIDs to export. This file is
written if the -count argument is specified. If the -count argument is not
specified, the file is read.
-count
Reports the number of objects to export. If used with the -modified_only
argument, the count indicates the number of changed objects that need to be
replicated to at least one of the sites specified with the -site argument. If
used with the -tag_list argument, a tag list file is written.
-browse
Specifies to browse objects in the export area without exporting or importing.
-u
Specifies the user ID.
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
In addition, to export named variant expressions (NVEs), you must set the
TRUE. To bypass the export of NVEs, set the
RDV_export_nve preference to TRUE
FALSE.
RDV_export_nve preference to FALSE
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
RDV00190,
1. Export to disk all variant options and variant revisions of item RDV00190
excluding the item itself:
sync_product_variant_data -u=infodba -p=*** -g=dba
-bypass -dir=C:\Temp\RDV00190_variant_data -item=RDV00190
-site=cologne -site=turin
2. Export to disk all variant options and variant revisions of item RDV00190
with variant data of associated architecture breakdowns (mostly NVEs):
sync_product_variant_data -u=infodba -p=*** -g=dba
3. Export to disk all variant options and variant revisions of item RDV00190
and all modified NVEs on its architecture breakdowns:
sync_product_variant_data -u=infodba -p=*** -g=dba
-bypass -dir=C:\Temp\RDV00190_variant_data -item=RDV00190
-arch -modified_only -site=cologne -site=turin
5. Export to disk all variant options of item RDV00190 and all variant
expressions (mostly DECLARE and DEFAULT statements) on revision D:
sync_product_variant_data -u=infodba -p=*** -g=dba
-bypass -dir=C:\Temp\RDV00190_variant_data -item=RDV00190
-rev=D -site=cologne -site=turin
6. Export to disk all variant options of item RDV00190 and all variant
expressions (mostly DECLARE and DEFAULT statements) on revision D, along
with variant data of associated architecture breakdowns (mostly NVEs), and
associated architecture breakdown revisions (mostly DECLARE and DEFAULT
statements):
sync_product_variant_data -u=infodba -p=*** -g=dba
-bypass -dir=C:\Temp\RDV00190_variant_data -item=RDV00190
-rev=D -arch -site=cologne -site=turin
7. Export to disk object index numbers 1,000 through 1,999 of all variant
expressions (mostly DECLARE and DEFAULT statements) of revision D of item
RDV00190, along with variant data of associated architecture breakdowns
RDV00190
(mostly NVEs), associated architecture breakdown revisions (mostly DECLARE
and DEFAULT statements), and their attached saved variant rules. Objects
are exported as determined in example 4.
8. Export to disk object index numbers 1,000 through the end of all variant
expressions (mostly DECLARE and DEFAULT statements) on revision D of item
RDV00190, along with variant data of associated architecture breakdowns
RDV00190
(mostly NVEs), associated architecture breakdown revisions (mostly DECLARE
and DEFAULT statements), and their attached saved variant rules:
sync_product_variant_data -u=infodba -p=*** -g=dba
-bypass -dir=C:\Temp\RDV00190_variant_data -item=RDV00190 -rev=D
-arch -site=cologne -site=turin -from=1000 -exclude_variants
11. Send object index numbers 1,000 through 1,999 in export area to Turin:
sync_product_variant_data -u=infodba -p=*** -g=dba
-dir=C:\Temp\RDV00190_variant_data -site=turin -from=1000 -to=2000
14. Import object index numbers 1,000 through 1,999 in import area:
sync_product_variant_data -u=infodba -p=*** -g=dba
-dir=C:\Temp\RDV00190_variant_data -from=1000 -to=2000
get_qpl_harvester_assemblies
Generates an XML file with the list of installation assemblies or special
assemblies from the BOM structure of the assembly. This utility is used in the
RDV cache maintenance process and its main purpose is to extract information
about the assemblies that the QPL harvester must process.
Overview
The utility also finds new, modified, or deleted installation assemblies or
special assemblies by comparing the newly generated XML file with a previously
generated XML file. The following information about each node is recorded
in the XML file:
• Item_id
• Item_name
• item_rev
• released_date
• abs_transformation_matrix
• occurrence_path
• unique_id
• owning_site
The cache administrator must specify the level in such a way that the assemblies
selected at that level belong to the product assembly structure site. The
administrator can specify different levels for different branches, for example:
“-select_by_level=4:CRITERIA MODULE”
“-select_by_level=3:STUDY MODULE”
do not exist in all the branches of the assemblies, it must identify the
special assemblies in those branches that do not have installation assemblies.
The get_qpl_harvester_assemblies utility identifies the branch by its item
name. The second-level assemblies in the vehicle structure represent the
CORP_Proc_Plan. This utility is provided
branch or modules and they are of type CORP_Proc_Plan
with the list of branches or modules, which do not have the installation
assemblies. Therefore, as the program walks down the structure, it checks
whether the branch name matches with the ones specified in special branches.
If yes, it walks further down the level specified in the input argument for
this branch and identifies the assemblies. It also checks whether or not
these assemblies belong to the product assembly structure site. However,
if the branch name does not match the special branches specified as input,
then the program walks further down to look for the installation assemblies
CORP_install). If this branch is integrated with modules, it
(with item type CORP_install
requires special handling, as these branches may contain nested installation
assemblies. Therefore, the program walks further down from the installation
assembly level to find lower level installation assemblies for these modules.
To determine whether the branch is integrated with the module, it must check
whether the names of the items of type CORP_Proc_Plan matches the module names
specified as input to the program.
The following code sample illustrates a typical vehicle assembly structure.
Red nodes in the structure are those identified as installation assemblies or
special assemblies by the get_qpl_harvester_assemblies program.
Syntax
-u=user-id {-p=
get_qpl_harvester_assemblies [-u= -p=password |
-pf=password-file} -g=group]
-item_id=item-id] [-item_rev=
[-item_id= -item_rev=rev-id] [-rev_rule=
-rev_rule=revision-rule]
-bookmark=bkm-file]
[-bookmark=
-select_by_level= level:branch-name
-select_bottom_up= module-name
-process_assy_list= file-with-items]
[-process_assy_list=
-out_modified_list= file-to-be-created
-out_special_assy_list= file-to-be-created
The following options can be specified multiple times:
-select_by_level
-select_bottom_up
The following arguments are optional:
-process_assy_list
-item_id, -item_id
-bookmark (If -item_id -item_id, and -rev_rule arguments are specified.)
-item_id, -item_rev
-item_id -item_rev, and -rev_rule (If -bookmark argument is specified.)
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-item_id
Specifies the item ID of the top-level vehicle assembly part.
-item_rev
Specifies the item revision of the top-level item.
-rev_rule
Specifies the revision rule with which the top-level vehicle assembly is
configured.
-bookmark
Indicates the bookmark representing the top-level vehicle assembly structure.
Note
-item_id, -item_rev
Use of the -item_id -item_rev, and -rev_rule arguments and the -bookmark
argument are mutually exclusive.
-process_assy_list
Specifies the process assembly list, which is a flat file containing a list
of item numbers. The assemblies listed in the file are added to the modified
lists (either to the installation assembly list or the special list) even
though they are not newly released.
Note
-select_by_level
Specifies module (branch) names in which the get_qpl_harvester_assemblies
should identify the special assemblies based on the level specified in the
option, for example:
-select_by_level=3:DESIGN CTR MODULE
-select_by_level=4:CRITERIA MODULE
-select_bottom_up
Specifies the names of the items below which eligible assemblies in lower
levels have precedence over eligible higher level assemblies. This option can
be used to select lower-level assemblies of embedded products, for example
subassemblies of an embedded power train within a vehicle product assembly
structure. For example:
-select_bottom_up=POWERTRAIN
-select_bottom_up=POWERTRAIN INTEGRATION
-out_xml_file
Specifies the name of the output structure XML file, as follows:
-out_xml_file=bkm_struct.xml
-out_modified_list
Specifies the name of the file in which the utility writes the modified or new
installation assembly to be processed, as follows:
-out_modified_list=bkm_modified_date.txt
-out_special_assy_list
Specifies the name of the file in which the utility writes the special
assemblies to be processed, as follows:
-out_special_assy_list=bkm_special_date.txt
-h
Displays help for this utility.
Environment
The Teamcenter environment must be set. Normally, this utility is run from
the RDV cache maintenance scripts. This is one of the utilities in the RDV
cache maintenance utility suite.
Files
None.
Restrictions
None.
Examples
•
$TC_ROOT/bin/get_qpl_harvester_assemblies -u=username -p=passwd -g=group
-item_id=12344 -rev=A -rev_rule=Alpha
“-select_by_level=3:DESIGN CTR MODULE”
“-select_by_level=4:CRITERIA MODULE”
“-select_bottom_up=POWERTRAIN”
“-select_bottom_up=POWERTRAIN INTEGRATION”
-out_xml_file=/tmp/12344_A_struct.xml
•
$TC_ROOT/bin/get_qpl_harvester_assemblies -u=username -p=passwd -g=group
-bookmark=/tmp/12344_A.bkm
“-select_by_level=3:DESIGN CTR MODULE”
“-select_by_level=4:CRITERIA MODULE”
“-select_bottom_up=POWERTRAIN”
“-select_bottom_up=POWERTRAIN INTEGRATION”
-out_xml_file=/tmp/12344_A_struct.xml
acc_check_client
Logs onto Teamcenter, performs an accountability check, stores the results in
occurrence groups and/or an Excel report and logs off. You can run this utility
from a Teamcenter command window or from a batch file that is developed to
perform a specific check on two specific structures. When running Teamcenter
in a two-tier environment, the batch file normally starts its own server.
For more information about running accountability checks in batch mode, see
Administering Assembly Planning.
Syntax
acc_check_client -u=user-id {-p=
-p=encrypted-password |
-pf=password-file} [-g=
-g=group]
-host="server-connection-url-or-IIOP"
-sourceSC= source-structure-context-name|-sourceBVR=
-sourceBVR=source-BOM-view-revision
-targetSC= target-structure-context-name|-targetBVR=
-targetBVR=target-BOM-view-revision
-sourceClosureRule= source-closure-rule
-targetClosureRule= target-closure-rule
-occGroupName= name-of-occurrence-group]
[-occGroupName=
-createOccGroupOnTarget]
[-createOccGroupOnTarget
-createOccGroupOnTarget
-reportName=dataset-name-containing-Excel-report]
[-reportName=
-check="full,missingTarget,missingSource,multiple"
-check= "full,missingTarget,missingSource,multiple"
-partialMatchProperties=""list-of-properties"
-partialMatchProperties=
-sourceRevisionRule= source-revision-rule]
[-sourceRevisionRule=
-targetRevisionRule= target-revision-rule]
[-targetRevisionRule=
-sourceVariantRule= source-variant-rule]
[-sourceVariantRule=
-targetVariantRule= target-variant-rule]
[-targetVariantRule=
-sourceDateEff= source-effectivity-date]
[-sourceDateEff=
-targetDateEff= target-effectivity-date]
[-targetDateEff=
-showUnconfigured="variants,changes,assignments" ]
[-showUnconfigured="variants,changes,assignments"
-showResults]
[-showResults
-showResults
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
The user needs appropriate write access to the source and target structures in
order to create occurrences groups and attach reports.
Note
-p
Specifies the user's password. This password must be encrypted
-sourceClosureRule
Specifies the filtering rule for the source structure.
-targetClosureRule
Specifies the filtering rule for the target structure.
-occGroupName
Specifies the name of the occurrence group that is created or updated on the
source structure. If no name is specified, no groups are created or modified.
-createOccGroupOnTarget
Specifies the occurrence group output to the target. If the missingSource
check is specified, the output to target is automatically turned on.
-reportName
Specifies the name of the dataset to which the Excel report is attached. If no
name is specified, no report is generated.
-check
Specifies the type of result the check reports. This argument can have one
or more of the following comma-separated values:
full,missingTarget,missingSource,multiple
-partialMatchProperties
Specifies the internal property names to be checked for partial match. This
argument can contain multiple property names separated by a comma.
-sourceRevisionRule
Specifies the revision rule on the source structure. The default is determined
by the source structure context or by a system setting.
-targetRevisionRule
Specifies the revision rule on the target structure. The default is determined
by the target structure context or by a system setting.
-sourceVariantRule
Specifies the classic variant rule on the source structure. The default is
determined by the source structure context or no rule.
-targetVariantRule
Specifies the classic variant rule on the target structure. The default is
determined by the target structure context or no rule.
-sourceDateEff
Specifies the GMT date for the effectivity on the source structure. If no date
is specified, the effectivity from the source structure context is used. The
format is yyyy-MM-ddThh:mm:ss zz:zz. For example:
2005-05-20T14:32:05-08:00
-08:00 represents minus 8 hours from GMT (resulting in Pacific Standard Time)
-targetDateEff
Specifies the GMT date for the effectivity on the target structure.
Output:
assy_jt_creator
Creates a JT representation of a given Teamcenter assembly. The resulting file
is stored in the file system and, optionally, in the database.
You can use the utility to collect the JT files on each node in a configured
structure and combine all JT files into a single monolithic assembly JT. You
can use a monolithic JT file to view assemblies in Resource Browser.
The utility can also create an assembly JT file that contains pointers to
other JT files, each representing a component in an assembly. Each node can
have a JT file and a transformation of that node.
Additionally, the utility can create a JT file for use with Tecnomatix
eMServer only.
Syntax
assy_jt_creator -u=user-id -p=
-p={password | -pf=password-file} [-g=
-g=group ]
-sc=structure-context |
{-sc=
{ -item=item-id | -key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN] }}
-tar_loc= target-location
-i=batch-file]
[-i=
-log=logfile-name]
[-log=
-rev=revision]
[-rev=
-rev_rule= revision-rule
-var_rule=variant-rule]
[-var_rule=
-tmode=transfer-mode-name]
[-tmode=
-jt_type={1
-jt_type= 1 | 2 | 3} ]
[-jt_type=
-pin=0 | 1]
[-pin=0
-cof=0 | 1]
[-cof=0
-dt_type=dataset-type] [-dt_rel=
[-dt_type= -dt_rel=dataset-relation]
-dt_ref=named-reference]
[-dt_ref=
-de=n | e | a | r]
[-de=n
-assy_update={create
-assy_update= create | replace
[-assy_update= replace} ]
-skip_root_dset_with_name= dataset-name]
[-skip_root_dset_with_name=
-skip_remote_lines]
[-skip_remote_lines
-skip_remote_lines
-debug]
[-debug
-debug
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-sc
Specifies the name of the structure context (see CompoundTools in the following
figure). If you include this argument, item ID, revision ID, revision rule,
variant rule, and transfer mode arguments are not required.
Tecnomatix Integration
Product
Robots
CompoundTools
For more information about structure contexts, see the Multi-Structure Manager
Guide.
-item
Specifies the item ID of the top line.
If you do not include the -sc argument, either this argument or the -key
argument is required.
-key
Specifies the key of the top line when multiple attributes are used to form
the unique item ID. Use the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
-i
Specifies an input batch file. This XML file uses elements that are equivalent
to the command line arguments and contains information about the assembly JT
files you want included in the monolithic JT assembly. Use this method to
simplify the input of parameters. This allows you save a set of arguments you
can use each time you run the utility.
This file must contain the following elements as a minimum (all defaults
are used in this file):
Note
<TargetLoc></TargetLoc>
<!–– TargetLoc specifies the path to the location on your operating system
where the utility saves the new JT assembly file.-->
Note
If an input XML file is specified, all other command line arguments (with
-u,
the exception of the log on (-u -pf, and-g
-u -p or -pf -g arguments) are ignored.
-log
Specifies the full path file name of the log file that stores PLM XML and
load library errors.
-rev
Specifies the revision ID of the top line.
If you do not include the -sc argument, this argument is required.
-rev_rule
Specifies the revision rule for configuring the assembly.
-var_rule
Specifies the variant rule for configuring the assembly.
-tmode
Specifies the name of the transfer mode. The transfer mode is not stored in
the system but is created at run time.
If you do not include this argument, the utility uses the default
JTDataExportDefault transfer mode.
-jt_type
Specifies the type of assembly to be created. Valid values are:
1
A monolithic JT file is a single file containing all the graphics for
a specific assembly.
2
An assembly JT file is an assembly file that contains pointers to other JT
files, each representing a component in an assembly.
3
A CoJT file is for use with Tecnomatix eMServer only.
If you do not specify this argument, the utility uses 1 (Monolithic JT).
-pin
Indicates whether to process intermediate nodes. Intermediate nodes are any
nodes that are not leaf nodes. Valid values are:
0
Do not process intermediate nodes.
1
Process intermediate nodes.
If you do not specify this argument, the utility uses 1 (process intermediate
nodes).
-cof
Indicates whether to terminate assembly creation upon encountering errors.
Valid values are:
0
Stop process when encountering an error.
1
Continue processing when encountering an error.
If you do not specify this argument, the utility uses 1 (continue processing).
-dt_type
Specifies dataset type used for attaching the resulting assembly to the item
revision.
-dt_rel
Specifies the dataset relation used for attaching the dataset to the item
revision.
-dt_ref
Specifies the named reference used for uploading the assembly file to the
dataset. If no named reference is given, the default named reference attached
to the dataset type is used.
-de
Specifies the behavior of dataset creation.
If you do not enter a value for this parameter, Teamcenter creates a JT file
without an associated dataset. Valid value are:
n
Creates a new dataset.
e
Does not revise an existing dataset. If the dataset does not exist, it
creates the dataset.
a
Revises an existing dataset. If the dataset does not exist, it creates
the dataset.
r
Revises an existing dataset. If the dataset does not exist, it generates
an error.
-assy_update
Specifies how the assembly JT is added to the dataset.
create
Assembly file is uploaded if no named reference is found in the dataset.
replace
Assembly file is always created and replaces the current named reference,
if it exists.
-skip_root_dset_with_name
Prevents the utility from exporting the dataset of this name that is associated
to the root node by an IMAN_Rendering relation.
-skip_remote_lines
Prevents the utility from exporting BOM lines that are not loadable.
-Debug
Turns on the debug mode that creates additional debug information files in
the log file location.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• robots.xml)
The following example is for an input XML file (robots.xml
robots.xml that uses the
ItemId, RevId
StructureContext element and therefore does not require the ItemId RevId,
RevisionRule, VariantRule or Transfermode elements. The default Latest
RevisionRule
Working revision rule and JTDataExportDefault transfer mode are used. The
default dataset type for a monolithic JT assembly is used to attach the
dataset to the JT assembly because the DatasetType element is not specified:
<!-- assy_jt_creator utility robots.xml input file -->
<ParamBatch>
<ParamSet id="001">
<SructureContext>CompoundTools</StructureContext>
<ItemId />
<RevId />
<RevisionRule />
<VariantRule />
<TransferMode />
<JtAssyType>1</JtAssyType>
<ProcessIntermediateNode>1</ProcessIntermediateNode>
<ContinueOnFail>1</ContinueOnFail>
<DatasetType />
<DatasetRelation>IMAN_reference</DatasetRelation>
<LogFile>c:\temp\monolithicJTUtility\logfile.log</LogFile>
<UpdateType>create</UpdateType><CreateDataset></CreateDataset>
<TargetLoc>c:\temp\monolithicJTUtility</TargetLoc>
<CreateDataSet>n</CreateDataSet>
<NamedRef>JTPart</NamedRef>
</ParamSet>
<!–- uncomment this section to add additional JT file parameters
<ParamSet id="002">
.
.
.
</ParamSet>
-->
</ParamBatch>
Use the following command to create the JT assembly using the robots.xml
file:
assy_jt_creator -u=infodba -p=infodba -g=dba -i=robots.xml
• The following example shows the same command line version creating the same
monolithic JT assembly shown in the previous XML file example. However,
the command line version does not continue to create the assembly if an
error is encountered during the process, does not revise the dataset if one
exists, and uses a custom transfer mode. A debug file is also created in
the log directory. The entire command must be entered on a single line.
assy_jt_creator -u=infodba -p=infodba -g=dba -sc=Robots -jt_type=1
-tar_loc=c:\temp\monolithicJTUtility -tmode=JTDataExportCustomTM
-pin=1 -cof=0 -dt_rel=IMAN_reference -assy_update=create -de= -dt_ref=JTPart
-debug
cc_writer
Creates a PLM XML cache file for a process structure contained in a specified
collaboration context object. The PLM XML cache file can be then loaded to
Teamcenter lifecycle visualization mockup from within Teamcenter.
Syntax
cc_writer -cc_name= cc-name
| -cc_uid= uid -sc_name= structure-context-name
| -sc_type= structure-context-type -output_file= file
-ua=pref:preferenceName,target: targetName1,key:keyName1,prop:propName1
[-ua=pref:
,...,target: targetNameN,key:keyNameN,prop:propNameN] [-h
-h]
-h
Arguments
-cc_name
Specifies the name of the collaboration context object. Either this argument
or the -cc_uid argument must be specified.
Note
-cc_uid
Specifies the UID of the collaboration context object in Teamcenter. This
argument is used in place of the -cc_name argument in situations where
identifying the collaboration context object by name only is not sufficient
because the collaboration context name is not unique in Teamcenter. A query
must be defined to obtain the UID of a given collaboration context object.
-sc_name
Specifies the name of the structure context to export. This argument is
optional. By default, the composition in the collaboration context object is
exported. This argument is used only to export non-composition structure
context.
-sc_type
Specifies the type of structure context to export, for example,
MEProcessContext. This argument is optional.
MEProcessContext
-output_file
Specifies the name of the file to be created and associated with the dataset.
The file is created in the current folder if a path is not specified or in the
target directory if a path is specified.
-ua
Defines user attributes. The syntax is similar to the bomwriter -ua option.
• pref:preference-name-used-for-this-utility
For example, pref: CC_ExtraPLMXMLInstanceAttributes picks the value of
“CC_ExtraPLMXMLInstanceAttributes” as the user attribute.
Occurrence. If Part
Valid values are Part and Occurrence Part, the property is added to
ProductRevisionView. If Occurrence
ProductRevisionView Occurrence, the property is added to Occurrence
Occurrence.
• key:name-of-property-in-PLM XML-file
• prop:name-of-the-property-in-Teamcenter
-h
Displays help for this utility.
Restrictions
None.
Examples
• To create the cc_process_cache.plmxml PLM XML file for the process structure
found in the structure context of the cc_process_cache collaboration
context object, enter the following command on a single line:
cc_writer -u=infodba -p=infodba -g=dba -cc_name=cc_process_cache
-sc_type= MEProcessContext -output_file=cc_process_cache.plmxml
-ua=target:Part, key:Description,prop:bl_item_object_desc, target:Occurrence,
key:FNA, prop:Usage_FNA
The PLM XML file contains additional attributes exported as user data. The
Description attribute is added to the product revision element and the FNA
attribute is added to the occurrence element. Those attributes can then be
presented with their values in Teamcenter lifecycle visualization mockup.
• To create the va_test.xml PLM XML file for the process structure found in
the structure context process of the collaboration context object va_test
va_test,
enter the following command on a single line:
cc_writer -u=infodba -p=infodba -g=dba -cc_name=va_test
-output_file=va_test.xml -ua=pref:CC_ExtraPLMXMLInstanceAttributes,
target:Occurrence, key:test_name, prop:CompoundName
gcs_import
Imports GCS connection types and connection point definitions from an XML file.
For more information about using the guided component search, see the Resource
Manager Guide.
Syntax
-u=user-id {-p=
gcs_import [-u= -p=password | -pf=password-file} -g=group]
-xml_file=xml_file_name -import_mode=ignore | overwrite [-h
-xml_file -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-xml_file
Specifies the name of an XML file containing connection types and connection
point definitions. The syntax of this file is explained in the EXAMPLES
section.
-import_mode
Specifies how existing data is handled by the import. Valid values are:
ignore The existing data is skipped by the import.
overwrite The existing data is replaced by the contents of the XML file.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To import the connection type and connection point definition found in an
GCS_data.xml, enter the following command on a single line:
XML file named GCS_data.xml
GCS_import -u=user-id -p=password -g=group —xml_file=GCS_data.xml —import_mode=ignore
<ConnectionTypeName>CT_Cylinder</ConnectionTypeName>
<Index>1</Index>
<Quantity>1</Quantity>
<Direction>Upwards</Direction>
<Shape>Plug</Shape>
<Attribute>
<ID>-40032</ID>
<Mapping>#-40235</Mapping>
</Attribute>
<Attribute>
<ID>-40033</ID>
<Mapping>#-40235</Mapping>
</Attribute>
</ConnectionPointDefinition>
<ConnectionPointDefinition>
<ClassID>TC_HOLDER_20_00_190</ClassID>
<ConnectionTypeName>CT_Cylinder</ConnectionTypeName>
<Index>1</Index>
<Quantity>1</Quantity>
<Direction>Upwards</Direction>
<Shape>Socket</Shape>
<Attribute>
<ID>-40032</ID>
<Mapping>#-40032</Mapping>
</Attribute>
<Attribute>
<ID>-40033</ID>
<Mapping>#-40033</Mapping>
</Attribute>
</ConnectionPointDefinition>
<ConnectionPointDefinition>
<ClassID>TC_HOLDER_10_00_110</ClassID>
<ConnectionTypeName>CT_Square</ConnectionTypeName>
<Index>1</Index>
<Quantity>1</Quantity>
<Direction>Upwards</Direction>
<Shape>Socket</Shape>
<Attribute>
<ID>-40127</ID>
<Mapping>#-40127</Mapping>
</Attribute>
</ConnectionPointDefinition>
<ConnectionPointDefinition>
<ClassID>TC_TURN_10_10_100</ClassID>
<ConnectionTypeName>CT_Square</ConnectionTypeName>
<Index>1</Index>
<Quantity>1</Quantity>
<Direction>Upwards</Direction>
<Shape>Plug</Shape>
<Attribute>
<ID>-40127</ID>
<Mapping>#-40238</Mapping>
</Attribute>
</ConnectionPointDefinition>
<ConnectionPointDefinition>
<ClassID>TC_TURN_10_10_100</ClassID>
<ConnectionTypeName>CT_Insert</ConnectionTypeName>
<Index>2</Index>
<Quantity>1</Quantity>
<Direction>Downwards</Direction>
<Shape>Socket</Shape>
<Attribute>
<ID>-40920</ID>
<Mapping>#-40920</Mapping>
</Attribute>
</ConnectionPointDefinition>
<ConnectionPointDefinition>
<ClassID>TC_INSERT_10_00_110</ClassID>
<ConnectionTypeName>CT_Insert</ConnectionTypeName>
<Index>1</Index>
<Quantity>1</Quantity>
<Direction>Upwards</Direction>
<Shape>Plug</Shape>
<Attribute>
<ID>-40920</ID>
<Mapping>#-40920</Mapping>
</Attribute>
</ConnectionPointDefinition>
</GCS_import>
import_nxcam_post_files
Imports CAM post and CSE driver data from an operating system-based file
system into the Teamcenter database. For example, you can use this utility to
import the files currently being used in the NX environment to the Teamcenter
database. In this situation, run this utility only once to initially load
existing supporting files into the Teamcenter database. Once the correct NX
customer default is set, the files are stored correctly during the sessions.
Syntax
-u=user-id {-p=
import_nxcam_post_files [-u= -p=password | -pf=password-file} -g=group]
-action=ignore | overwrite | new_revision
-import_dir=import-directory-name] [-h
[-import_dir= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-action
Specifies the actions performed during the import.
• ignore
• overwrite
Overwrites objects that already exist in the database.
• new_revision
Creates a new revisions of the objects that already exists in the database.
This is the default setting.
-import_dir
Specifies the directory containing the CAM post and CSE driver data to be
imported. If this argument is not used, one of the environment variables
listed in the Environment section must be set.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
If the -import_dir argument is not specified, one of the following environment
variables must be set before running this utility:
• UGII_CAM_POST_DIR
Imports global postprocessor files and/or posts and ISV drivers for generic
machines.
• UGII_CAM_USER_DEF_EVENT_DIR
Imports user-defined event files.
• UGII_CAM_SHOP_DOC_DIR
Imports shop documentation files.
• UGII_CAM_LIBRARY_INSTALLED_MACHINES_DIR
Imports the post/CSE files of installed machines.
To import machine post and CSE data from the d:\mach\resource directory using
the -overwrite action, enter the following command on a single line:
%TC_ROOT%\bin\import_nxcam_post_files -u=infodba -p=infodba-password -g=dba
-action=overwrite -import_dir=d:\mach\resource
import_step_part21_files
Imports vendor product data (tool components) from a vendor catalog to the
Vendor Catalogs branch of the classification hierarchy. A user can then map
these components with data to a customer branch of the hierarchy and use them
to create tool assemblies in Resource Manager for use in NX CAM.
For more information about importing vendor catalogs, see the Resource Manager
Guide.
Syntax
-u=user-id {-p=
import_step_part21_files [-u= -p=password |
-pf=password-file} -g=group]
-import_dir=tool-catalog-import-directory-name|-file=
{-import_dir= -file=p21-file-with-directory-name}
-map_file= mapping-file-name
-assortment_file= assortment-file-name
-All]
[-All
-All
-classID]
[-classID
-classID
-dryrun]
[-dryrun
-dryrun
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-import_dir
Specifies the directory containing the p21 files.
-file
Specifies the full path and file name for the p21 files used to import the
vendor catalog.
Teamcenter ignores this parameter if -import_dir is set.
-map_file
Specifies the name of a text file that contains the mapping definitions from
the p21 vendor class attributes to the Teamcenter attributes found in the
classes in the Vendor Catalogs hierarchy in the classification hierarchy. This
file is delivered with the vendor catalog.
-assortment_file
Specifies the path and name of a text file that contains a list of tool
component data. This file is delivered with the vendor catalog.
-All
Imports all components listed in the assortment file.
-classID
Specifies the class in the hierarchy that acts as a starting point for the
import. Teamcenter imports product data (tool component data) from this class
downward in the classification hierarchy.
-dryrun
Tests the import by verifying the existence of tool classes and attributes.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To import one p21 file:
import_step_part21_files -u=infodba -p= password -g=dba
-file=D:\toolItems\5726990_20120829d.p21
-map_file=D:\toolItems\STEP_p21_Mapping_SA__V09.txt
-assortment_file=D:\toolItems\GTC_P21_Assortment_Example_V9_work.txt
-assortment_file= D:\toolItems\GTC_P21_Assortment_Example_V9_work.txt
install_mes_templates
Creates a dataset containing all files and relations necessary to generate a
3D PDF report using the Generate 3D PDF Report wizard. As input, this utility
requires an XML file that contains the paths to the required files as well
as a variety of parameters.
For more information about customizing 3D PDF reports, see Administering
Assembly Planning.
Syntax
install_mes_templates -u=user-id {-p=
-p=encrypted-password |
-pf=password-file} [-g=
-g=group]
-type=optional-dataset-type]
[-type=
-desc=optional-dataset-description]
[-desc=
-file=qualified-path-to-XML-input-file
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user's password. This password must be encrypted
You can obtain an encrypted password by typing:
ipa_b_executer -p=plain-text-password -encrypt
-type
Mes0PDFReportTemplate.
Specifies the dataset type. The default value is Mes0PDFReportTemplate
-desc
Specifies a dataset description.
-file
Specifies the path to the XML file that is used as input for this utility.
For more information, see XML file syntax.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
XML file
syntax
The following is a sample XML file required as input for this utility.
<?xml version="1.0" encoding="UTF-8"?>
<ME_3D_PDF_ImportData>
<Templates>
<TemplateInput name="my new 3DPDF Work instructions">
<PDF file=".\Templates\TC mode\3D\my_ME_TC3D_PDF_Template.pdf" type="binary"/>
<Thumbnail file=".\Templates\TC mode\3D\my_ME_TC3D_PDF_TemplatePreview.jpg"
type="binary"/>
<Stylesheet file=".\Templates\TC mode\3D\my_ME_TC3D_PDF_StyleSheet.xsl" type="text"/>
<DynamicJS file=".\Templates\TC mode\3D\my_ME_TC3D_PDF_JavaScript.js" type="text"/>
<TM name="ME_Gen3D_PDF_ExportTM" file=".\Templates\my_ME_Gen3D_PDF_ExportTM.xml"
overwrite="false"/>
<Contain2D val="False"/>
<Contain3D val="True"/>
<ContainSimulation val="False"/>
<DataSource val="TC"/>
<Override val="True"/>
<Specification val="SHOW_DATASELECTION_PAGE=STEPS_DEF_OPTIONS"/>
</TemplateInput>
</Templates>
</ME_3D_PDF_ImportData>
ipa_b_executer
Generates or updates in-process assemblies and updates filtered in-process
assemblies in a manufacturing process structure. The input for this utility
is a parameter file in which you specify whether to update either the IPA,
the FIPA, or both simultaneously. You cannot create FIPAs with this utility.
You can only create FIPAs from within the Manufacturing Process Planner
application.
Note
-p
Specifies the user's password. This password must be encrypted
You can obtain an encrypted password by typing:
ipa_b_executer -p=plain-text-password -encrypt
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-f
.txt file) that is used as input
Specifies the path to the parameter file (.txt
for this utility.
For more information, see Parameter file syntax.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Parameter file
syntax
The first entry in each line in the parameter file indicates whether an IPA or
FIPA is to be updated. Therefore, there are two types of lines in this file:
• The parameter line for an IPA starts with #Item
• If both #Item and #Item_FIPA lines are present in the file, Teamcenter
updates both the IPA and the FIPA.
In the line, each parameter must be separated from its value by the % symbol.
If there is more than one value for a parameter, each of these values must
be separated by a % symbol.
You can use the following parameters to create or update an IPA:
Item
Specifies the top process ID.
Key
attr=value,attr2=value2....
Specifies the top process key in the form of attr=value,attr2=value2...
Rev
Specifies the top process revision.
Rule
Specifies the configuration rule.
OG
Specifies the type of IPA occurrence group.
Name
Specifies the name of the IPA.
Occ
Specifies the types of the product occurrences that are included.
Proc
Specifies the types of the processes for which an occurrence group is
created.
• Proc2:
To update only the FIPA for process Proc2
#Item_FIPA%000029##Rev%A##Rule%Latest Working##Parent_FIPA%000031#
#Name%Proc2_fipa##Prod_ID%000013##Prod_Rev%A##Prod_Rule#
#Latest Working#
Note
If a value for the #Name# parameter is not present, then all the
FIPAs under the Parent_FIPA process are updated. You must always
include the #Name# parameter even if it has no value.
migrate_vrule_configcontext
Migrates collaboration contexts containing single variant rules to
collaboration contexts capable of containing multiple variant rules required,
for example, when configuring a 120% BOM. This utility queries the database
for all configuration context objects where the variant_rule property is not
empty. It then copies the variant_rule value to variant_rules[0] and saves
it. The utility generates a log file that lists:
• The number of collaboration context objects found in the database.
• The number of objects that were skipped or do not have a single variant
rule.
For more information about using the 120% BOM feature, see the Manufacturing
Process Planner Guide.
Syntax
migrate_vrule_configcontext -u=user-id {-p=
-p=encrypted-password |
-pf=password-file} [-g=
-g=group]
-filename=log-file-name]
[-filename=
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
The user needs appropriate write access to the source and target structures in
order to create occurrences groups and attach reports.
Note
-p
Specifies the user's password. This password must be encrypted.
You can obtain an encrypted password by typing:
ipa_b_executer -p=plain-text-password -encrypt
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-filename
Specifies a user defined file name that holds the log file, for example,
-filename=D:\myFolder\myFile.
-filename=D:\myFolder\myFile
If a file name is not specified or remains blank, Teamcenter uses the
C:\temp\migrate_vrule_config context_ timestamp file as the default.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
mrm_export_resources
Exports resources from Teamcenter classification. This is useful if you
manage your resource and classification data in Teamcenter but run NX in its
native mode. In this situation, you can use this utility to export tooling
classification and data from Resource Manager so it can be used by NX CAM in
native mode.
For more information about using Resource Manager tooling data with native NX
CAM, see Getting Started with Manufacturing.
Syntax
-u=user-id {-p=
mrm_export_resources [-u= -p=password | -pf=password-file} -g=group]
-class=root-class-ID
-def_file= definition-file [-class_graphics_dir=
-class_graphics_dir= directory
-class_graphics_option=all|changed ]]
[-class_graphics_option=all|changed
-dat_file= database-file [-dat_graphics_dir=
-dat_graphics_dir= directory
-dat_graphics_option=all|changed ]] [-h
[-dat_graphics_option=all|changed -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-class
Exports the classification hierarchy and/or instance data from the specified
root class ID. Use the -def_file and -dat_file arguments to specify whether
classification hierarchy, and/or instance data, is exported, respectively.
-def_file
Exports the specified definition file. The file is based on the class
hierarchy structure.
Note
The definition file includes the list of required attributes and key-LOV
definitions. It also includes the hierarchical structure of the nested
classes.
For each class, the list of available attributes for the Search dialog
box and the resulting table must be defined. If a definition for the
RSET attribute set is defined, the attributes specified for the Search
dialog box is used for the RSET attribute set.
-def_file=dbc_mfg_toollib_customer_tlas.def
To export the ASCII tool database file for all tool assemblies, including all
updated graphic files:
mrm_export_resources -u=infodba -p=infodba -g=dba -class=TOOL02
-dat_file=tool\metric\tool_database.dat -dat_graphics_dir= tool\
metric\graphics\ -dat_graphics_option=changed
CLASS TOOL_MRM
{
TYPE QRY
QUERY "[DB(Type)] == [TOOL01]"
DIALOG libref Holder
RSET libref Descr MaterialDes Holder
UI_NAME "MRM Tooling"
CLASS MILLS
{
TYPE QRY
QUERY "[DB(Type)] == [TAM02]"
DIALOG libref Diameter Holder
RSET libref Descr Diameter MaterialDes Holder
UI_NAME "Milling"
tcexcel_import
Creates process structures based on an input file, for example, generated from
an Excel spreadsheet.
For more information about using this utility, see the Manufacturing Process
Planner Guide.
Syntax
-u=user-id {-p=
tcexcel_import [-u= -p=password | -pf=password-file} -g=group]
-i=input-file1[;input-file2...] [-d=
-d=debug-level] [-o={on
-o={on | off}
off}]
-t=item-type]
[-t=
-s=dummy-status] [-pf={precise
[-s= -pf={precise | imprecise}
imprecise}]
-m=marker-file-name] [-f=
[-m= -f=file-format-help] [-psfile
-psfile] -parser_only]
-psfile [-parser_only
-parser_only
-delimiter=delimiter-character] [-h
[-delimiter= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-i
Specifies input files. At least one file name is required. Additional file
names are separated with a semicolon (;;).
-d
Sets debug level. Default value is 0, no debug messages.
-o
Toggles overwrite mode on or off. Default is to overwrite.
-t
item.
Specifies default item type. Default is item
-s
DUMMY_STATUS.
Specifies dummy release status for working revisions. Default is DUMMY_STATUS
-pf
imprecise.
Specifies precise mode. Default is imprecise
-m
marker.txt.
Specifies marker file name. Default value is marker.txt
-f
Displays a help message describing file format.
-psfile
Specifies if the file specified by the -i option is a PIM file.
-parser_only
Specifies to stop after preparsing of Excel files with Header4.
-delimiter
Specifies delimiter character. Default is #.
-h
Displays help for this utility.
Input file
format
The input file has the following format:
• ##.
One item per line, fields separated by value of ##
#DELIMITER x (default: )
#ALT_DELIMITER x (default: ;)
#CONSUMED_INFO c1,c2 ... (optional)
#COL field ... (default:item type rev attributes option
loadif level seq occs uom alt matrix status
link_root plant_root consumed resource
required workarea occ_note abs_occ act_name
act_desc activities duration predecessor
owner group process_link)
#ALT_DELIMITER.
Alternates to be separated by the value of #ALT_DELIMITER
Valid fields are:
Field Description
item Item ID
rev Revision ID (default=A)
name Item name
revname Item revision name
type Item type
descr Item description
attributes Attributes
option Option;Value;Value...
loadif ItemID;Option ==/!= Value
level Determines the structural hierarchy (top = 0)
seq Sequence number for item in the BOM view
occs Number of occurrences in this item
qty Quantity of an item in the structure
uom Unit of measure (symbol, not the name)
alt Alternates (default delimiter=;)
matrix Graphics position
status Revision status
link_root Link root as target
plant_root Plant_root
consumed Assign consumed items
resource Link resources to operation
required Assign required items
workarea Link workareas to operation
occ_note Attach occurrence notes to process/operation
abs_occ Attach absolute occurrence
act_name Activity name
act_desc Activity description
activities Create activities and attach forms
duration Duration for operation activity
predecessor Predecessor indicator (for process or
operations)
owner Change ownership to specified owner
group Change group to specified group
process_link Link to already existing process
upgrade_nx_cam_templates
Replaces NX/CAM setup templates in the Teamcenter database.
Note
The templates with a component are imported from the directory specified
TC_DATA; templates without a component are imported from
by the value of TC_DATA
UGII_BASE_DIR.
the directory specified by the value of UGII_BASE_DIR
Syntax
-u=user-id {-p=
upgrade_nx_cam_templates [-u= -p=password |
-pf=password-file} -g=group]
-included_list= included-file-name] [-excluded_list=
[-included_list= -excluded_list= excluded-file-name] [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-included_list
Specifies a text file with a template ID list that is replaced in the Teamcenter
database. The complete file specification, that is, the full path and file
-excluded_list
Specifies a text file with template ID list that is not replaced in the
Teamcenter database. The complete file specification, that is, full path
and file name, must be supplied. This is an optional argument. If no file
is provided, then all CAM templates in the Teamcenter CAM Setup Templates
folder are replaced.
-h
Displays help for this utility.
Environment
The UGII_BASE_DIR and TC_DATA variables must be set to use this utility.
Files
None.
Restrictions
None.
Examples
• To replace all templates in the CAM Setup Templates folder:
upgrade_nx_cam_templates -u=infodba -p=infodba -g=dba
drill_inch, drill_metric
Only four templates, drill_inch drill_metric, turning_inch
turning_inch, and
turning_metric, in the in_file.txt file are replaced.
turning_metric
• To replace all templates in the CAM Setup Templates folder except the
templates listed in the ex_file.txt file in the d:\workdir folder.
upgrade_nx_cam_templates -u=infodba -p=infodba -g=dba
-excluded_list=d:\workdir\ex_file.txt
drill_inch, drill_metric
Four templates, drill_inch drill_metric, turning_inch
turning_inch, and turning_metric
turning_metric,
in the ex_file.txt file are not replaced.
icsutility
Imports the following types of Classification data:
• Class definitions.
This can optionally include the attributes, groups, parent classes,
subclasses, or the class hierarchy from the root.
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-mod
insert, update
Specifies the type of modification: insert update, or revise
revise.
insert
Creates a new ICO, item, and item revision. If an ICO or item with the
corresponding name already exists, nothing is imported.
Attribute values are imported in the new ICO. Class-specific and
instance-specific files (for example, HPGL files, GIF files, JT files, and
PRT files) are attached to the new item revision.
-update
Updates the values in the ICO attached to the latest item revision (or to
the item) and the assembly structure in the latest item revision (or item),
as well as the class-specific and instance-specific files.
-revise
Creates a new item revision and ICO and imports the attribute values in
the new item revision and ICO that classifies the new item revision.
Class-specific and instance-specific files are attached to the new item
revision.
You can specify an additional argument, -forceConversion=1 (default
value 0). In this case, the relationship to the item is converted to a
relationship from the ICO to the latest item revision.
-dbg
Specifies the debug level. Any positive integer number up to level 7. 0
turns off debugging mode. The higher the debug level, the more detailed is
the trace being output.
-del
Specifies the list of characters used to delimit multiple search directories
and file extensions in the following file path and extension options:
-fid
Specifies the name of a folder into which imported items and datasets are
placed. This folder is placed in the Newstuff folder.
-sfn
Specifies the name of the SML file to be processed. Do not include the
.sml file extension.
-sfp
Specifies the path of the directory containing the .sml file. Paths must
be terminated using the platform-specific path delimiter, as follows:
\ Windows delimiter
/ UNIX delimiter
-cfp
Specifies the directory path (or paths) containing the class-related files
to be imported, such as class image files.
-cfe
Specifies the file extension of the class-related files to be imported.
Accepts multiple file extensions separated by the delimiter set using
the -del argument.
-ofp
Specifies the directory path (or paths) of the object-related files to
be imported.
-ofe
Specifies the file extension of the object-related files to be imported.
Accepts multiple file extensions separated by the delimiter set using
the -del argument.
-ffp
Specifies the directory path containing the file types configuration file
to be used.
-ffn
Specifies the name of the file types configuration file to be used,
including the file extension.
-clr
If used, specifies that item revisions are classified when importing data. If
not used, items are classified upon import.
When you specify the -clr argument and try to import an ICO that is already
in the database and the item, but not the item revision, was classified, an
error message is output when insert mode is used. When update mode is used,
the relationship to the item is converted to a relationship from the ICO
to the latest item revision.
-cit
Creates items of the specified item type, rather than the standard items.
Environment
This utility must be run in the Teamcenter shell environment.
Files
As specified in Log files produced by Teamcenter and the filetypeDefaults.txt
configuration file.
The entries in the filetypeDefaults.txt configuration file map the extensions
of all imported files to specific Teamcenter data structures: GRM relationship
type, dataset type, named reference, optional default tool, and optional
subdirectory name. The mapping of file extensions to specific Teamcenter data
structures can be configured per import directory/subdirectory combination.
Restrictions
You must have the corresponding privileges (create/modify) to start the import
process. If you do not have the privileges, the data is not imported and a
message is written to the log file.
icsxml
Exports the following types of Classification data through XML files:
• Class definitions.
This can optionally include the attributes, subclasses, parent classes, or
the class hierarchy from the root.
Input file
format
The format of the input and output file for the icsxml utility must comply
with the XML standard. This standard defines five special characters used to
structure the content. If these characters are included in the body of the XML
file, they must be replaced, as shown in the following table.
The following example illustrates the use of the special XML characters:
<KeyLOV keyLOVId="-123451">
<Name>Space & test</Name>
<Values>
<Key>01 22</Key>
<Value>Value & 01</Value>
</Values>
</KeyLOV>
Syntax
-u=user-id {-p=
[-u= -p=password | -pf=password-file} -g=group]
icsxml -import import-flags
icsxml -export export-flags
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-export
Exports the given subset of Classification data into an XML file.
-import
Imports Classification data from a given XML file into the Teamcenter database.
-update
Updates existing objects while importing the Classification data. If this
argument is not used, the utility does not import data for existing objects.
This argument is only valid in conjunction with the -import argument.
-file= xml-file-path
Specifies the physical path of the XML file.
For the -export option, the utility generates the given XML file.
For the -import option, the utility reads the given XML file.
-filter= A, K, C, V, I, all
Specifies the object types to be considered for the import/export operation.
One or more of the following characters can be specified:
A Attributes
K Key-LOV
C Classes
V Views
I Instances
all All types of objects are accepted for import or export
If filter options are not specified, all is used as the default.
-class= class-id
Specifies the ID of the class definition object to be exported. This argument
is valid only in conjunction with the -export argument.
-objtype= A|K|C|I
Specifies the type of object for which an ID is given using the -objid argument.
One the following values can be specified for the -objtype argument:
A Attributes
K Key-LOV
C Classes
I Instances
-objid= object-id
Specifies the ID of the object. Used in conjunction with the -objtype argument.
Note
The -objtype and -objid arguments are valid only in conjunction with
the -export argument.
• To export Classification data for the ugc101 class into the ugc101.xml
file with the option to export parent classes with associated views and
subclasses, enter the following command on a single line:
icsxml -file=ugc101.xml -filter=all -export -class=ugc101
-parentviews -subclass -u-infodba -p=pwd -g=dba
• To export Classification data for the -2005 attribute into the -2005.xml
file with the option to export the associated Key-LOV objects, enter the
following command on a single line:
icsxml -file=-2005.xml -filter=AK -export -objtype=A
-objid=-2005 -u=infodba -p=pwd -g=dba
ics_connect
Associates classification objects (ICOs) with workspace objects, based on
item ID. You can list multiple workspace objects, or you can create a text
file containing a list of item IDs.
For example, when you use the smlutility utility to import classification
data into Teamcenter, the ICOs are created as specified in the input file,
but they are not attached to the items defined in the input file via their
uid. Use the ics_connect utility to associate all your ICOs
workspace object uid
(not already connected to any item) to the specified item of the same ID.
Caution
If you use multifield keys to define item IDs, you cannot use ics_connect
to connect a standalone ICO to an existing item because multiple items
with the same ID exist.
Syntax
-u=user-id {-p=
ics_connect [-u= -p=password | -pf=password-file} -g=group]
-names=item1-ID,item2-ID,... | -file=file-name} [-h
{-names= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
item3, connecting
The system searches for items with the ID item2 and item3
them to ICOs with the same ID, as long as the ICOs are not attached to
any other workspace object.
• To associate the ICOs with the item4/A and item5/C item revisions:
ics_connect -u=infodba -p=infodba -g=dba -names=item4/A,item5/C
item5/C,
The system searches for item revisions with the ID item4/A and item5/C
connecting them to ICOs with the same ID, as long as the ICOs are not
attached to any other workspace object.
• To associate the ICOs with the item IDs contained in the wso_names.txt file:
ics_connect -u=infodba -p=infodba -g=dba -file=wso_names.txt
The file must contain item and item revision IDs, one per line.
smlutility
Updates shared Classification hierarchy definitions to all sites with which
they are shared.
Use this command if you do not want to run the subscriptionmgrd daemon in
the background. This utility can also be used to share specific definitions
immediately, for example, if you modify a definition and want to share it with
a colleague at a different site. In such cases, you can execute the command by
specifying the definitions you want to share and the sites to which you want
to update these definitions.
When you import classification data into Teamcenter using the smlutility
utility, the ICOs that are created are not attached to the items defined in
the input file using a workspace object UID. Use the ics_connect utility to
associate all the ICOs not already connected to any item to the specified
item of the same ID.
Caution
Syntax
-u=user-id {-p=
smlutility [-u= -p=password | -pf=password-file} -g=group]
{[-import | -export | -delete | -list_hierarchy | -sync |
-reassign_to_rev | -ask_shared_sites | -add_shared_sites | -update_shared_sites |
-list_local_icos | -migrate | -update_unit_system | -lost_icos |
-list_invalid_class_ids | -repair_default_value | -h]}
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-import
Imports definitions from the specified file into the database.
-insert
Appends the definitions to the existing definitions.
-update
Overwrites the existing definitions with those specified in the file.
-export
Exports definition data to a specified file. For example:
smlutility -export user password group file-name...[-select:object-selection]
[-objects:object-details]
object-selection
dictionary | keylov | class=cid[... | ::sid] | all
object-details
dictionary | keylov | class | data | hierarchy | all
-delete
Deletes definitions based on class, view, ICO ID, or attribute. For example:
smlutility -delete SA user SA password SA group
-class -id=class-ID [-icos] [-recurse]|
-view -id=class-ID [-icos]|
-ico (-cid=class-ID|-id=object-ID)|
-attribute -id=ID-number
-keylov
-class
Removes the identified class.
-icos
Removes all instances of the specified class.
-recurse
Removes all children of the specified class.
-view
Removes the specified view.
-icos
Removes all instances of the specified view if the view is a subclass.
-ico
Removes the identified instances (ICOs).
-attribute
Removes the specified attribute.
-keylov
Removes the specified key-LOV.
-list_hierarchy
Displays the classification hierarchy starting from the specified class.
For example:
smlutility -list_hierarchy [-u=SA user -p=SA password -g=SA group]
-id=class|groupID [-icos [-wso]] [-views]
[-attr] [-norecurse] [-nodescribe]
-icos
Displays basic information about the ICOs of each class.
-wso
Displays information about the classified workspace object.
-norecurse
Lists direct children only.
-nodescribe
Displays less information.
-sync
Synchronizes Classification definition data with remote sites, for example:
smlutility -sync SA-user SA-password SA-group [-definitions] [-sites] [-verbose]
-definitions=
VIEW | CLASS | GROUP | DICTIONARY):ID [,ID[,...]]
VIEW:
Class-ID::View-ID
DICTIONARY:
Attribute-ID
CLASS:
Class-ID
KEYLOV:
KeyLOV-ID
GROUP:
Group ID
Note
Examples
-definition=VIEW:myClass::myView,myClass::mySecondView
-definition=CLASS:myClass,mySecondClass,MyThirdClass
-definition=KEYLOV:-20000
-sites
Specifies the sites to which the data is updated. If you do not specify
sites, synchronization takes place between all sites with which definitions
are shared. For example:
-sites=site-name[,site-name[,...]]]
Example
-sites=IMC-12345,IMC-56789
-reassign_to_rev
Modifies ICOs that classify an item so that they classify the latest item
revision. For example:
smlutility -reassign_to_rev -u=SA-user -p=SA-password -g=SA-group class -id=class
ID [-recurse]|view -id=view-ID|ico -id=object-ID
class
Identifies the class for which all ICOs will be reassigned. For example,
using class -id-ugc010101 indicates that all ICOs in the ugc010101 class
that classify an item will be changed so that they classify the latest
revision of the item. You can use the -recurse option to reassign all ICOs
of the class and all subclasses of the identified class. For example, using
class -id=ugc010101 -recurse indicates that all ICOs in the ugc010101 class
that classify an item will be changed so that they classify the latest
revision of the item. In addition to changing the ICOs of the class, the
ICOs in all subclasses of the given class are changed as well.
view
Reassigns all ICOs of the identified view. For example, using class
-id=ugc010101 view -id=DefaultView reassigns all ICOs in the DefaultView
of class ugc010101 so that the latest revision of the item is classified.
ico
Reassigns the identified Classification instances (ICOs). For example,
ugc010101_001)
using ico -id=ugc010101_001 changes the specific ICO (ugc010101_001
ugc010101_001 so
that it classifies the latest revision of the item.
General rules
If an ICO to be reassigned has no associated item or already classifies an
item revision, the ICO is not reassigned.
When an ICO is reassigned, the ICO object ID is changed automatically. For
example, ICO ugc010101_001 changes to ugc010101_001/A if A is the latest
revision of the item.
-ask_shared_sites
Returns the names of the sites to which the specified object is shared.
smlutility -ask_shared_sites [-u=SA-user] [-p=SA–password] [-g=SA–group] –objectType={class
| view | attribute | key-LOV} –objectID=object-ID
-objectType
Specifies the type of object whose site you want to know. You can request
the site of a class, view, attribute or key-LOV.
-objectID
Specifies the ID of the object whose site you request. If you request a
view’s site, the ID has the following format:
class-ID::view-ID
-add_shared_sites
Sets the Shared Site property for a class, and optionally including its
descendants and parents.
smlutility -add_shared_sites
-u=user -p=password -g=group -classes=class-ID -sites=site-name -options=options
-classes
classid[,classid[,...]]
-sites
sitename[sitename[,...]]
-options
option[,option[,...]]
shareChildClasses
Specifies to share child classes.
shareDefaultViews
Specifies to share default views.
shareSubclasses
Specifies to share subclasses.
shareSpecificViews
Specifies to share specific views. The ICS_share_viewtypes preference,
user, group
which can be set to a combination of user group, or role
role, is evaluated.
shareParents
Specifies that the parents of the classes named in the argument classes
are also shared. If this option is not set, the share operation fails
for classes whose parents are not shared to the selected site.
shareViews
Use to share default views, subclasses, and specific views, that is,
shareDefaultViews, shareSubclasses
specifying shareViews includes the shareDefaultViews shareSubclasses,
and shareSpecificViews options.
shareAll
shareViews, shareChildClasses
Use to include the shareViews shareChildClasses, and shareParents
options.
For example:
smlutility -add_shared_sites -classes=myClass1,myClass2 -sites=Vienna
-options=shareChildClasses,shareDefaultViews
-update_shared_sites
Changes the site name in all groups, classes, views, attributes, and key-LOVs
when updating a site name in Multi-Site.
smlutility -update_shared_sites [-u=SA-user] [-p=SA–password] [-g=SA–group]
-oldSite=site-name -newSite=site-name
-oldSite
Specifies the original site name that is to be replaced by a new name.
-newSite
Specifies the new site name to replace the old one in all groups, classes,
views, attributes, and key-LOVs.
-list_local_icos
Lists all ICOs that are owned locally.
smlutility -list_local_icos [-u=SA-user] [-p=SA-password] [-g=SA-group]
-cid=Class-ID [-verbose]
-cid
Specifies the unique ID of a classification class or group whose local
ICOs should be listed.
-verbose
Displays additional information.
-migrate
Assigns the measurement system to each individual ICO within a class.
If an ICO previously exists within a solely metric or nonmetric class, the
measurement system is not directly assigned to the ICO but is contained in the
class definition. When you move from a metric or nonmetric class to one that
contains both, Teamcenter assigns the measurement system to each individual
ICO within the class.
smlutility -migrate [-u=SA-user] [-p=SA-password|-pf=password-file] [-g=SA group] -cid=class-ID
[-dryrun] [-verbose={0|1|2}][-remote]
-dryrun
Displays results of running the utility without making any changes and
tests if all ICOs of the class can be accessed and changed.
-verbose
Displays additional information. The value for this argument must be one
of the following:
0 No output
1 Output on error
2 Information and error output
-remote
Updates remote ICOs as well.
-update_unit_system
Changes a class or a class hierarchy that is previously metric or nonmetric to
support both unit systems simultaneously.
smlutility -update_unit_system [-u=SA-user] [-p=SA-password] [-g=SA-group]
-cid=class-ID -unit=both [-recurse]
-cid
Specifies the class ID of the class required to support both unit systems.
-unit=both
Specifies that the class is changed to support both unit systems.
-recurse
Changes all child classes beneath the class specified by the -cid parameter
to support both unit systems.
-lost_icos
Reports and recovers ICOs that do not have a class ID set. If, during
creation, Classification crashes, an ICO can already be created, but the
attribute specifying in which class it is to be classified not yet saved.
This utility finds these unsaved ICOs and can, optionally, classify them in
the specified class.
smlutility -lost_icos [-u=user-id {-p=password | -pf=password-file} -g=group]
[-cid=class-ID]
[-createClass]
[-recover]
[-reportfile=name-of-external-file-containing-results]
-cid
Specifies the ID of the class in which the recovered ICOs are to be
classified. The ICOs are only classified in this class if -recover is
also specified.
-createClass
Creates the specified class if it does not already exist.
-recover
Moves the found ICOs to the specified class. If this argument is not
set, Teamcenter lists the ICOs in the command window or in a file, if
you set the -reportfile argument.
-reportfile
Specifies the name of a file in which Teamcenter writes the names of all
the ICOs found by the lost ICO search. If you do not use this argument,
Teamcenter lists the results in the command window.
-list_invalid_class_ids
Lists all the group and class IDs in the database that contain invalid
characters. By default, the following characters are invalid:
|%*:(){}[] \
You can specify a subset of these characters to be valid using the
ICS_allowed_chars_for_class_id preference.
smlutility -list_invalid_class_ids [-u=user-id {-p=password | -pf=password-file} -g=group]
[-reportfile=file-name]
-reportfile
Specifies the name of a file in which Teamcenter lists all the invalid
group and class IDs. If you do not use this argument, Teamcenter lists
the results in the command window.
-repair_default_value
Deletes default value for a view attribute if the corresponding class
attribute’s value is set to fixed.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
This utility synchronizes shared definitions but does not change to which
sites definitions are shared. If you specify a definition and site for
synchronization, but the site is not one for which sharing has been designated,
the definition is not sent to the site. For example, if the myClass class is
London, nothing is synchronized if you
only shared to the sites Rome and London
execute the following command:
smlutility -sync SA user SA password SA group -definition=CLASS:myClass -sites=Paris
Examples
• To import Classification data from a file, perform the following steps:
1. Enter the following command at a system command prompt:
smlutility -import user password group file -insert
For example:
smlutility -import infodba infodba dba in-CLASSexample.sml -insert
For example:
smlutility -import infodba infodba dba in-CLASSexample.sml -update
For example:
For example:
smlutility -delete infodba infodba dba attribute -id=1643
You must install this directory using the Teamcenter Environment Manager.
• Attribute
• Class
• Subclass
• Data
The following table lists reserved characters, their purpose, and a description:
For component nodes, the third, fourth and fifth entries contain the record,
class, and subclass identifiers of the database record representing the
component. For propagation start points (PSPs), the third entry contains the
number of the propagation start point prefixed by the letter C. In this case,
the fourth and fifth entries remain empty.
The sixth entry contains a component quantity field. Multiple components of
mc0101_002, must be listed on subsequent lines,
the same type, for example mc0101_002
each indicating a quantity of one, which allows each line to define its own
component transformation.
The seventh entry indicates whether the component graphics are to be displayed
in the context of the Genius4000 XTM assembly. This value is not yet mapped to
any attribute of the ICS data model.
The remaining entries, including and beyond the eighth entry, define the
position of a component in terms of coordinates x, y and z as well as the
orientation of the component using the Euler rotation angles a, b and c. This
information generally applies only to a single component, thus diluting the
interpretation of the component quantity field.
!
!BSM|SML-Id| min| max| Flag| TXT | Flag1| TXT1| Flag2| TXT2| EX1| EX2|
BSM | 2001 | | | 0 | | 0 | | 0 | | | |
BSM | 2003 | | | 0 | | 0 | | 0 | | | |
BSM | 2004 | | | 0 | | 0 | | 0 | | | |
BSM | 2005 | | | 0 | | 0 | | 0 | | | |
BSM | 2007 | | | 0 | | 0 | | 0 | | | |
! Subclass 02 : "My Class 2" C2 including all
! (Attributes displayed in different order)
!BLD| BLDID| Description |ShortDesc|Graphic|Flags|EX1|EX2|
BLD | 02 | C2 including all | | | 0 | | |
!
!BSM|SML-Id| min| max| Flag| TXT | Flag1| TXT1| Flag2| TXT2| EX1| EX2|
BSM | 2004 | | | 0 | | 0 | | 0 | | | |
BSM | 2005 | | | 0 | | 0 | | 0 | | | |
BSM | 2001 | | | 0 | | 0 | | 0 | | | |
BSM | 2002 | | | 0 | | 0 | | 0 | | | |
BSM | 2006 | | | 0 | | 0 | | 0 | | | |
BSM | 2007 | | | 0 | | 0 | | 0 | | | |
BSM | 2003 | | | 0 | | 0 | | 0 | | | |
! Subclass 03 : "My Class 2" C2 limited
!BLD| BLDID| Description |ShortDesc|Graphic|Flags|EX1|EX2|
BLD | 03 | C2 limited | | | 0 | | |
!
!BSM|SML-Id| min| max| Flag| TXT | Flag1| TXT1| Flag2| TXT2| EX1| EX2|
BSM | 2003 | | | 0 | | 0 | | 0 | | | |
BSM | 2004 | | | 0 | | 0 | | 0 | | | |
BSM | 2007 | | | 0 | | 0 | | 0 | | | |
! ---- Data Records ----
! Class 1
DAT |mc0101_001|mc01|01|0| | |2001: 3.75 |2004:My sample record |2007:L
DAT |mc0101_002|mc01|01|0| | |2001:15.5 |2004:Please remind me
DAT |mc0101_003|mc01|01|0| | |2001:85 |2004:Right oriented |2007:R
DAT |mc0101_004|mc01|01|0| | |2001: .123|2006: 90.0 |2007:L
DAT |mc0101_005|mc01|01|0| | | 2006:180 |2007:N
DAT |mc0101_006|mc01|01|0| | |2001:98.76 |2006:270 |2007:L
DAT |mc0102_001|mc01|02|0| | |2001: .01 |2004:Small data |2002:2.5
DAT |mc0102_001|mc01|02|0| | |2001: 0.333|2004:Negative Diameter|2002:4
DAT |mc0102_001|mc01|02|0| | |2001:20 | 2002:8.8
DAT |mc0102_001|mc01|02|0| | |2007:L |2004:Big Part |2002:13.73
! Class 2
DAT |lexan_01 |mc02|01|0| | |2001: 4.0 |2003: 4 |2005:01 |2007:L
DAT |lexan_02 |mc02|01|0| | |2001: 4.0 |2003: 6 |2005:01 |2007:L
DAT |lexan_03 |mc02|01|0| | |2001: 4.0 | 2005:01 |2007:R
DAT |lexan_04 |mc02|01|0| | |2001: 4.0 |2003: 4 |2005:01 |2007:R
DAT |lexan_05 |mc02|01|0| | |2001: 4.0 |2003:18 |2005:01 |2007:L
DAT |copper_01 |mc02|01|0| | |2001: 4.0 |2003: 4 |2005:05 |2007:L
DAT |copper_02 |mc02|01|0| | |2001: 4.0 |2003: 6 |2005:05 |2007:L
DAT |copper_03 |mc02|01|0| | |2001: 2.0 | 2005:05 |2007:L
DAT |copper_04 |mc02|01|0| | |2001: 2.0 |2003: 4 |2005:05
DAT |copper_06 |mc02|01|0| | |2001: 1.0 |2003:18 |2005:05 |2007:N
DAT |alu_01 |mc02|01|0| | |2001:18.1 |2003: 7 |2005:04 |2007:R
DAT |alu_02 |mc02|01|0| | |2001:20.2 |2003: 6 |2005:04 |2007:L
DAT |alu_03 |mc02|01|0| | |2001:21.3 | 2005:04 |2007:N
DAT |mc0202_001|mc02|02|0| | |2001:123.456 &
|2002:78.905 &
|2003: 13 &
|2005: 02 &
|2006: 45 &
|2007: N &
|2004: Keep in stock !
DAT |mc0203_001|mc02|03|0| | |2003: 2 |2004:Example 001 |2007:L
DAT |mc0203_002|mc02|03|0| | |2003: 4 |2004:Example 002 |2007:R
DAT |mc0203_003|mc02|03|0| | |2003: 8 |2004:Example 003 |2007:R
DAT |mc0203_004|mc02|03|0| | |2003: 16 |2004:Example 004 |2007:N
DAT |mc0203_005|mc02|03|0| | |2003: 31 |2004:Example 005 |2007:N
The STV keyword defines a list. Lists associated with an attribute provide
a method by which the Classification administrator defines a list of values
for a given attribute.
One or more STD statements defining the list of values for the list follow
the STV statement defining the list.
The following example creates a list to be used with a Cut Direction attribute.
The resulting list contains the Left Hand Climb and Right Hand Climb options.
The SMV keyword defines an attribute and adds the attribute definition to the
attribute (UNCT) dictionary. Once an attribute is defined in the dictionary,
it can be used and reused as needed.
This definition describes a +/-6.3 format with units of mm for the metric class
and a +/-3.3 format with units of inch for the inch class. For example:
For + or - REAL(6.3) use 21311. Where 11 is the sum of: (6 plus 3=9) plus .=10 plus - which gives 11.
For a forced pos. REAL(6.3) use 20310. Where ( 6 plus 3 plus . )=10.
For a Real(3.3) that forces pos. numbers, use the code 20307.
For a Real(6.3) that forces pos. numbers, use the code 20310.
The value in the Flags parameter of the SML (class) command determines which
of the two definitions are used with that class.
Note
The first digit of a positive format number defines what types of values are
expected in the field and controls the format of the value. The format number
can be up to five digits in length. The following figure explains the meaning
of the digit in the format number:
The negative format number matches the STXT-ID of the list definition
and associates the attribute to the previously defined list.
List definition
Keyword STXT-ID Name
STV | -3002 | Direction
List definition
Keyword STXT-ID Name
STD | R | Right
The attributes are associated with the class because they immediately
follow the SML statement. There is no explicit reference to the class in
the SMD statements.
Flags denote the following options that you set when creating a class or
group using the smlutility utility.
You can set these flags using specific integers in the import files.
Flag Description
0 Class with metric unit system
1 Class with nonmetric unit system
2 Group definition
4 Class with both unit systems (metric and nonmetric)
16 Abstract option not selected)
Storage class (Abstract
32 Assembly class
512 Class that prevents remote classified object creation
Prevent remote ICO creation selected)
(Prevent
You can also specify any meaningful combination of these options by adding the
16 + 1). This is
flags. For example, 17 denotes a nonmetric storage class (16
equivalent to setting the following options.
The SMD keyword associates attributes with a class. The class definition must
associate all of the attributes that will be used by any subordinate subclass.
A subclass can only associate attributes that have been previously associated
with the parent class.
For example, the following lines define the Fasteners group (essentially a
ID,
class without any attributes), add the Nuts01 class, and associate the ID
OD, and THRD predefined attributes with the class:
OD
SML |Fasteners|FSTNRS| |Fasteners|FSTNRS| | 2 | | | !Fasteners Group
SML |Nuts01 |NT |Fasteners|Nuts |Nts |nuts.gif| 0 | | | !Nuts Class
SMD |-25011 |ID | | |0 | | | !ID attribute |
SMD |-25011 |OD | | |0 | | | !OD attribute |
SMD |-25011 |Thread| | |0 | | | !Thread attribute |
For example, the following lines define the HexNuts01 and SquareNuts01
subclasses and associate a predefined attribute named ID:
BLD|00 |Nuts |Fasteners|nuts.gif|Nts|nuts.gif| 0 | | |!Subclass
BLD|01 |HXNuts|Fasteners|nuts.gif|Nts|nuts.gif| 0 | | |!Subclass
BSM|-25011|ID | | |0 | | | !ID attribute
build_fts_index
Builds keyword indexes for the Autonomy search engine on an object-by-object
basis. These indexes enable the Teamcenter full-text keyword search and can
index both the properties of Teamcenter dataset objects and the contents of
dataset files.
• If a dataset file is not of a document type supported by Autonomy, the
utility invokes a user-specified filter program to convert the file to
a supported format.
• A file attached to a dataset must contain enough words for the Autonomy
software to detect the language.
Note
Autonomy supports a wide range of file types for word processing, spreadsheet,
and presentation graphics applications.
Word
Processing
The following word processing file types are supported:
• HTML
• SGML
• XML
• TEXT
• RTF
• WML
• Adobe PDF
• ASCII text
• ANSI text
• Unicode V2.x
• Microsoft RTF
• Quark QXD
Spreadsheet
The following spreadsheet file types are supported:
• Microsoft Works V3.x and later
Presentation
Graphics
Formats
The following presentation graphics file formats are supported:
• Shockwave Flash (with Autonomy Flashslave)
Syntax
-u=user-id {-p=
build_fts_index.exe [-u= -p=password | -pf=password-file} -g=group]
| -type=variable_name | -ext=extension | -filter= /path/scriptfile |
-workdir= work_directory | -db=Autonomy_database | -filenumber= number_of_files |
-log=logfile | -f=
-f=[index update] | -maxresults= number_of_queries |
index | delete | update
-query=query_name | -entry=entry_name | -value=entry_name_value | -report
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-type
Specifies the dataset type to index. Specified dataset types must be defined
by the TC_fts_indexed_types preference.
If this argument is not specified, all dataset types defined by the
TC_fts_indexed_types preference are indexed.
This argument can be specified multiple times to index multiple dataset types
in a single utility session, for example:
-type=Text -type=HTML
Note
-ext
Specifies the extension pattern of the files to be indexed. This argument can
be specified multiple times to index multiple file types in a single session.
This argument can contain wildcard characters.
If not specified, the default value is an asterisk (**), and all files
associated with datasets are indexed.
-filter
Specifies a filter program requiring that two arguments, input file and output
file, be specified. The input file is read and its contents are output in a
file format that is supported by Autonomy. By default, no filter is applied.
Note
-workdir
Specifies the full path to the directory under which an autonomy subdirectory
is created to store all exported dataset files and any immediate files to be
indexed by Autonomy.
• All exported files and any immediate files are removed from the directory
after the utility is run.
• The user must have the write privilege into the work directory.
• delete
Deletes invalid index entries from the Autonomy database.
This option does not support the -query argument.
• update
f=index.
If this argument is not specified, the default operation is f=index
-maxresults
Defines the number of query results that can be returned by the search engine.
This option is useful if you want to control how often to place query calls to
the Autonomy server and allow the utility to process invalid index entries
at intervals without consuming large amounts of memory. For example, use
-maxresults to control how often to make query calls to Autonomy server during
the -f=delete operation.
Note
5000.
If this argument is not specified, the default maximum number is 5000
-query
Defines the name of the Teamcenter saved query that can be run to find all
dataset objects that need to be indexed.
This argument is useful when you select a few individual datasets to be indexed
with special options, such as a different language type.
• Datasets returned by the query are indexed only if their dataset types are
defined by the TC_fts_indexed_types preference.
When used with the -f argument, -query works only with the -f=index
and -f=update options.
-entry
Specifies the user entry name for the saved query for which the search value
is being defined.
-value
Specifies the value corresponding to the entry name.
Note
-report
Prints all the datasets that are reindexed when the utility is run using the
-update option. The -report argument can be used to report datasets that were
not indexed during the last indexing run.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• The following example indexes all dataset types defined by the
TC_fts_indexed_types preference:
$TC_BIN/build_fts_index
-u-=user-name -p=password -g=group-name\
-filenumber=500
Note
• The following example indexes Text type datasets. Only the dataset files
with txt extensions are indexed.
$TC_BIN/build_fts_index
-u=user-name -p=password -g=group-name\
-type=Text
-filenumber=500
• The following creates index entries in the Autonomy database for dataset
objects modified after the specified date (in this case, 11-Aug-2011):
$TC_BIN/build_fts_index
-u=user-name -p=password -g=group-name\
–query=”Dataset...”
–entry=”Modified After”
–value=”11-Aug-2011”
Note
The query value must exactly match a name value as shown in Query
Builder.
For information about using Query Builder, see the Query Builder
Guide.
• The following example deletes invalid index entries from the Autonomy
database for all dataset types defined by the TC_fts_indexed_types
preference:
$TC_BIN/build_fts_index
-u=user-name -p=password -g=group-name\
-f=delete
• The following example deletes invalid index entries from the Autonomy
database for Text type datasets:
$TC_BIN/build_fts_index
-u=user-name -p=password -g=group-name\
-f=delete
-type=Text
default_queries
Reinstalls one or more of the default query forms. When you run the utility,
it searches for these default query forms and automatically reinstalls any
that have been deleted. If a default query form has become corrupted, you must
delete it from the database before running this utility.
This utility can operate in one or more locales provided the locales are
supported by the encoding of the TCServer machine. To set the correct locale,
use the preferences_manager utility to set the TC_language_default preference
as shown in the following example:
preferences_manager -u=infodba -p=password -g=dba
-mode=import -scope=SITE -preference=TC_language_default
-values=xx -action=OVERRIDE
Siemens PLM Software recommends that you run this utility as the default
infodba).
Teamcenter system administration user (infodba
infodba This ensures that the
query forms are protected from unauthorized modification by other users
because they are owned by the infodba user.
Syntax
-u=user-id {-p=
default_queries [-u= -p=password | -pf=password-file} -g=group]
-locales= locale-code | ALL [-recreate
-recreate] -validate_query_name]
-recreate [-validate_query_name
-validate_query_name
-validate_query_descs]
[-validate_query_descs -modify_queries query_name(s) | ALL
-validate_query_descs [-modify_queries ALL] [-v
-v] -h]
-v [-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-locales
ALL, for which translated query
Specifies the locale, using locale codes or ALL
names and descriptions are installed. You can specify a single locale or
you can specify multiple locales in a comma-separated list, for example
en_US,de_DE,fr_FR. Using the ALL value installs all locales supported by your
en_US,de_DE,fr_FR
Teamcenter system.
For a list of locale codes, see the Localization Guide.
-recreate
Optional parameter. Recreates the default query.
-validate_query_name
Optional parameter. Validates the query name does not exceed the maximum
length.
-validate_query_descs
Validates the query description does not exceed the maximum length.
-modify_queries
Updates the query clauses of the specified queries with the default query
clause. You can specify a single query or you can specify multiple queries
in a comma-separated list, for example, ItemRevision,Item,Dataset. Use the
ALL value to modify all your queries.
-v
Specifies verbose mode.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
None.
find_appearances
Queries the database for information about appearances. Arguments can be
specified to restrict the search, as follows:
Note
Syntax
-u=user-id {-p=
find_appearances [-u= -p=password | -pf=password-file} -g=group]
-item_id=item-id] | [-key=
[-item_id= -key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]]
-config_rule=config-rule] [-view_type=
[-config_rule= -view_type=view-type]
-root_only]
[-root_only -date=date |now
-root_only [-date= now|today
now today] -unit_no=unit-number]
today [-unit_no=
-component_item_id= component-item-id]
[-component_item_id=
-query=saved-query [-query_entries=
[-query= -query_entries= entry=value [entry=value,...]]]
-list]
[-list -verbose]
-list [-verbose -print_cols=all col[col...] ]] [-history
-print_cols=all|
-verbose [-print_cols=all -history]
-history
-attrs]
[-attrs -single_line][-no_transform
-single_line -no_transform]
-attrs [-single_line -print_queue]
-no_transform [-print_queue -timing]
-print_queue [-timing
-timing
-validate]
[-validate -check]
-validate [-check -queue_check]
-check [-queue_check
-queue_check [-h -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-item_id
Tracks the given item to find appearances for the appearance roots.
-key
Tracks the given item, specified by key, to find appearances for the appearance
roots. Use the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
• -ics=class,attr-id:value-clause[,.attr-id:value-clause,...]]
With component Item(Revision) satisfying the given Classification data:
mapped_attrs= name operator value[,name operator value,...]]
Where operator is one of the following:
=, !=, >, >=, < or <=
-list
Specifies that the appearances are output in a simple list.
-verbose
Specifies that the appearances are output as an indented BOM.
-print_cols
Use with the -verbose argument to specify the columns to display. Valid values
are all or column-id, where column ids are comp
comp, dates
dates, unit_nos
unit_nos, occ
occ, parent
parent,
creation_date, precise
creation_date precise, Component Item Rev
Rev.
-history
Use with the -verbose argument to include appearance history in the output.
-attrs
Use with the -verbose argument to print mapped attributes in the output.
-single_line
Use with the -attrs argument to output mapped attributes on the same line as
main appearance attributes.
-no_transform
Use with the -attrs argument to print mapped attributes but not the transform
matrix.
-print_queue
Prints information about all the primary queue entries affecting the appearance
root (includes the processed entries).
-timing
Prints timing information in the output.
-validate
Compares the appearances with the equivalent product structure.
Note
You must also supply the -date argument, -unit_no argument, or both
arguments, depending on the revision rule.
-check
Checks each appearance for duplication.
-queue_check
Places entries in the queue to check the appearance root.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
The following code segment shows the invocation of this utility.
find_appearances utility
find_recently_saved_item_rev
Allows you to search for item revisions with a UGMASTER dataset or BOM view
revision that has been modified during a range of dates. Use a date before the
earliest assembly was created to ensure a listing of all changed items.
Syntax
-u=user-id {-p=
find_recently_saved_item_rev [-u= -p=password |
-pf=password-file} -g=group]
-start_date= DD-MMM-YYYY HH:MM:SS -end_date= DD-MMM-YYYY
HH:MM:SS -obj_type= object-type [-out_file=
-out_file=output-filename |
-outItemRevKeyFile= output-filename] -h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-start_date
Defines the date and time from which the item revisions are searched. The time
specifies a time in the current time zone for the machine where the program
is running. Use the following format: dd-mmm-yyyy hh:mm:ss. For example,
01-Jan-2002 13:00:00.
find_released_item_rev
Allows you to create a query based on date and object type. The query is
performed on the Teamcenter database and generates the released item revision
list to identify released item revisions. Use a date before the earliest
assembly was created to ensure a listing of all released items.
Syntax
-u=user-id {-p=
find_released_item_rev [-u= -p=password | -pf=password-file} -g=group]
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-start_date
Defines the date and time from which the item revisions are searched. The time
specifies a time in the current time zone for the machine where the program is
running. This argument is required.
Use the following format: dd-mmm-yyyy hh:mm:ss. For example, 01-Jan-2002
13:00:00.
-end_date
Defines the date and time before which the item revisions are searched. The
time specifies a time in the current time zone for the machine where the
program is running.
Use the following format: dd-mmm-yyyy hh:mm:ss. For example, 01-Jan-2002
13:00:00.
If this argument is not defined, the item revisions are searched until the
current date.
This argument is optional.
-obj_type
Specifies the object type to be searched. This argument is optional; if not
defined, objects of all types are searched.
-out_file
Specifies the name of the file to which the list of item revisions is sent.
This argument is optional; if not defined, the output is written to the
standard output.
The output includes key values.
-outItemRevKeyFile
Specifies the name of the item revision key file to which the list of item
revisions is sent. This argument is optional; if not defined, the output
is written to the standard output.
-h
Displays help for this utility.
Environment
This utility should be run from a shell where the Teamcenter environment is set.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
To list all the item revisions released after January 01, 2002:
$TC_ROOT/bin/find_released_item_rev -start_date="01-Jan-2002 00:00:00"
-out_file=released_items.txt
query_xml
Creates, modifies, writes, deletes, and runs queries from an XML formatted
file.
Syntax
-u=user-id {-p=
query_xml [-u= -p=password | -pf=password-file} -g=group]
-v -f=xml-command-file [-o=
-o=output-file-name] [-h
-h]
-h
Arguments
-u=
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p=
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g=
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-f= xml-command-file
Specifies the fully qualified name of the XML file used to control processing.
This argument is mandatory.
-o= output-file-name
Specifies the name of the file to which the output from the write and execute
processes are written. This argument is optional. If unspecified, the output
is sent to the console. This parameter is required for the execute and
execute_tuple command types.
The -o argument specified for outputting a generated query result file does
not support appending the results of multiple queries to the specified output
file. If you have more than one query specified in the query_xml utility, only
the last query is included in the defined output file. The documentation for
-o usage is correct for a single query but does not describe the scenario or
required parameter for multiple queries and output files.
query_xml, add a parameter called
If you execute multiple queries using query_xml
outputFileName to the query definition to specify a unique output file for
each query. Because queries can result in structurally different XML content
per context, queries cannot be appended together and must be treated as unique
files per query.
For example:
?xml version="1.0" encoding="UTF-8"?>
<ImanQueryCommandFile site_name="arh" site_id="id”>
<ImanQueryCommand command="execute”>
<name value="Dataset Name"/>
<query_input_parameter name="Dataset Name" value="test1"/>
<query_pff_post pffName="Admin - Objects By Status"
outputFileName="d:\\outpff1.xml"/>
</ImanQueryCommand>
<ImanQueryCommand command="execute”>
<name value="Dataset Name"/>
<query_input_parameter name="Dataset Name" value="test2"/>
<query_pff_post pffName="Admin - Objects By Status"
outputFileName="d:\\outpff2.xml"/>
</ImanQueryCommand>
<ImanQueryCommand command="execute”>
<name value="Dataset Name"/>
<query_input_parameter name="Dataset Name" value="test3"/>
<query_pff_post pffName="Admin - Objects By Status"
outputFileName="d:\\outpff3.xml"/>
</ImanQueryCommand>
<ImanQueryCommandFile>
• pffdef.dtd
Defines the output format when the PFF option is used.
Restrictions
None.
Return Values
Return value upon 0
success
Return value upon Nonzero
failure
Examples
To create a query, enter the following command on the command line:
query_xml -f=xml-file-name -u=infodba -p=infodba -o=output-file
Note
To receive output for the execute and execute_tuple command types, you
must supply a pffName in the input XML command file and an output file
name in the -o=output-file-name parameter on the query_xml call. Output
file names specified in the input XML command file are ignored.
XML File
Format and
Examples
The XML file must conform to the format shown in the following code segments.
<!ATTLIST query_pff_post pffName CDATA #REQUIRED> <!-- the pff to use (must be in db)-->
outputFileName CDATA #REQUIRED> <!-- file to write data (no longer used)-->
<!-- the encapsulation of the command. the attribute says it all. -->
<!-- for the create and modify the program expects the ImanQueryDefinition -->
<!-- for the execute delete and write the name is sufficient though the -->
tc_set_query_where_run
Runs a saved query. You can choose to run the saved query using a user exit.
See the TC_ROOT\sample\examples\user_query.c file for user exit sample code
that can be used with this utility.
Syntax
-u=user-id {-p=
tc_set_query_where_run [-u= -p=password | -pf=password-file} -g=group]
-query=query-name -run=
-run={iman
iman | query | user
user} [-h-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-query
Specifies the name of saved query to run.
-run
Specifies how to run the query:
• iman
Run the query normally.
• query
Run using a user exit.
• user
Run using a user exit and display results in a text table.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Installation
install
Performs limited Teamcenter maintenance and Oracle database administration.
Caution
Some of the install utility arguments are reserved for Siemens PLM
Software use only and should not be used by customers. Using the install
utility with arguments designated as being for Siemens PLM Software use
only can result in the corruption with the Business Modeler IDE template
and data model synchronization.
Syntax
install
-p=password | -pf=password-file}
{-p=
-add_func_index user-id password grp class index-name unique-flag
[-add_func_index
fn class-name attr1 attr2...]
-add_index user-id password group class index-name unique-flag
[-add_index
class-name attr1 attr2...]
-ask_version]
[-ask_version
-ask_version
-ask_xmit_file user-id password group object-file]
[-ask_xmit_file
-drop_index user-id password group class-name index-name]
[-drop_index
-encrypt]
[-encrypt
-encrypt
-encryptpwf -e=environment-variable-name -f=pw-file-name]
[-encryptpwf
-find_control_chars user-id password group class-name attribute]
[-find_control_chars
-gen_xmit_file user-id password group]
[-gen_xmit_file
-h]
[-h
-h
-lock_db user-id password group]
[-lock_db
-pom_object_index user-id password group]
[-pom_object_index
-regen_schema_file user-id password group]
[-regen_schema_file
-replace_control_chars user-id password group class hex-bad-char replacement-string]
[-replace_control_chars
-reset_last_login_time user-id password group]
[-reset_last_login_time
-temp_table user-id password group list ]
[-temp_table
-unlock_db user-id password group]
[-unlock_db
Arguments
-p
Specifies the password associated with the user-ID value.
This argument is mutually exclusive with the -p argument. One of the two
mutually exclusive password elements is required.
-pf
Specifies the password file.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument. One of the two
mutually exclusive password elements is required.
o -g=group
password
Specifies the password or password file associated with the user-ID value.
For more information, see the descriptions of the -p and -pf arguments.
group
Specifies the group associated with the user-ID value. In most cases,
dba.
the group is dba
index-name
Specifies the name of the index. This is internal to POM and not the
name used in Oracle.
unique-flag
1 indicates that the index is unique. 0 indicates that the index allows
duplicates.
class-name
Specifies the name of the class.
list-of-attributes
Specifies the list of attributes of the class separated by a blank space.
Note
-ask_version
Returns the current version of Teamcenter stored in the Oracle database.
user-id
Specifies a system administration user ID. In most case, this is infodba or
another user ID with similar privileges.
password
Specifies the password or password file associated with the user-ID value.
For more information, see the descriptions of the -p and -pf arguments.
group
Specifies the group associated with the user-ID value. In most cases,
dba.
the group is dba
object-file
Specifies the object file to transmit. Alternatively, use this syntax:
-f=object-file.
Note
o -g=group
o -g=group
-encrypt
Reads a database connect string from the TC_DB_CONNECT environment variable
and displays on the console that connect string with the password encrypted.
To change the database password, you need to change the password (see the System
Administration Guide), set the TC_DB_CONNECT environment variable to contain
that new password, run this utility specifying the -encrypt option, and copy
the new version of the connect string it outputs into the tc_profilevars file.
-encryptpwf
Creates an encrypted password file. Requires the -e argument to identify
the environment variable that contains the password to encrypt and the -f
argument that indicates the name and location of the file containing the
encrypted password.
-e= environment-variable-name
Specifies the environment variable that contains the password to encrypt.
This argument is valid only if you specify the -encryptpwf argument. You
can specify any environment variable that contains a clear text password
value that you want to encrypt. For security reasons, chose an obscure and
unique name for the environment variable and immediately unset the environment
variable after you run the utility.
-f= password-file-name
Specifies the name and location for the file containing the encrypted password
used to connect to the Teamcenter database. This file is used by Teamcenter
utilities when using the -pf argument and by some other Teamcenter functions.
This argument is valid only if you specify the -encryptpwf argument. If the
-f= argument is omitted, the utility uses the fourth command line argument as
the file name. For example, the following commands are considered equivalent:
•
install -encryptpwf -e=ENV_VAL -f=pwd.txt
•
install -encryptpwf -e=ENV_VAL pwd.txt
Note
o -g=group
user-id
Specifies a system administration user ID. In most case, this is infodba or
another user ID with similar privileges.
password
Specifies the password or password file associated with the user-ID value.
For more information, see the descriptions of the -p and -pf arguments.
group
Specifies the group associated with the user-ID value. In most cases,
dba.
the group is dba
Note
• -g=group
-h
Displays help for this utility.
-lock_db
Locks the sites against further use. The lock remains in place until unlocked
with the -unlock_db argument. The following values must be supplied in this
order:
user-id
Specifies a system administration user ID. In most cases, this is infodba
or another user ID with similar privileges.
password
Specifies the password or password file associated with the user-ID value.
For more information, see the descriptions of the -p and -pf arguments.
group
Specifies the group associated with the user-ID value. In most cases,
dba.
the group is dba
See restrictions #1 and #4.
user-id
Specifies a system administration user ID. In most case, this is infodba or
another user ID with similar privileges.
password
Specifies the password or password file associated with the user-ID value.
For more information, see the descriptions of the -p and -pf arguments.
group
Specifies the group associated with the user-ID value. In most cases,
dba.
the group is dba
Note
• -g=group
-regen_schema_file
Generates a new POM schema file. Requires Teamcenter system administration
privileges. The following values must be supplied in order:
user-id
Specifies a system administration user ID. In most cases, this is infodba
or another user ID with similar privileges.
password
Specifies the password or password file associated with the user-ID value.
For more information, see the descriptions of the -p and -pf arguments.
group
Specifies the group associated with the user-ID value. In most cases, the
dba. See restrictions #1 and #3.
group is dba
user-id
Specifies a system administration user ID. In most case, this is infodba or
another user ID with similar privileges.
password
Specifies the password or password file associated with the user-ID value.
For more information, see the descriptions of the -p and -pf arguments.
group
Specifies the group associated with the user-ID value. In most cases,
dba.
the group is dba
class
Specifies the class.
hex-bad-char
Specifies the hexadecimal code of the control character to replace.
replacement-string
Specifies the string to insert in place of control characters.
Note
• -g=group
user-id
Specifies a system administration user ID. In most case, this is infodba or
another user ID with similar privileges.
password
Specifies the password or password file associated with the user-ID value.
For more information, see the descriptions of the -p and -pf arguments.
group
Specifies the group associated with the user-ID value. In most cases,
dba.
the group is dba
Note
• -g=group
• -g=group
Environment
As specified in Manually configuring your environment for Teamcenter utilities
and the following environment variables:
TC_DB_CONNECT
POM_SCHEMA
POM_TRANSMIT_DIR
For more information, see the Preferences and Environment Variables Reference.
Files
As specified in Log files produced by Teamcenter and the following:
• $TC_DATA/tc_profilevars
Stores site environment variable settings. This file is modified by the
-encrypt argument.
• POM schema file data file created by the install utility with the
-regen_schema_file argument.
Full file specification (directory path and file name) is set by the
POM_SCHEMA environment variable.
• POM transmit schema file data file created by the install utility with
the -gen_xmit_file argument.
Full file specification (directory path and file name) is set by the
POM_TRANSMIT_DIR environment variable.
Restrictions
1. Common command line argument syntax for user-id, password, and group
arguments is not supported. Values for these arguments must be separated
by an equal sign (==). For example, the following syntax works:
$TC_BIN/install -regen_schema_file infodba password dba
$TC_BIN/install -regen_schema_file -u=infodba -p=password -g=dba
4. The -lock_db does not force logout of existing users, but does prevent
additional users from logging on.
6. When adding a new custom privilege, you must have previously added that
privilege to the am_text.uil file and recompiled the file.
For additional information, see the Server Customization Programmer's
Guide.
Examples
To regenerate the POM transmit schema file, enter the following command on a
single line:
$TCROOT/bin/install -gen_xmit_file infodba password dba
tem.sh/.bat
Starts the Teamcenter Environment Manager utility. Use the -s to bypass the
Teamcenter Environment Manager user interface and run the installation in the
background. There is no feedback when the silent install is running.
Syntax
application_root/install/tem -s=file-name
Arguments
-s
Performs a silent install. Teamcenter Environment Manager (TEM) looks in
the current working directory for the configuration file to use. If a file
name is specified for this argument, TEM uses the specified file as input
for the silent install.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Audit Manager
migrate_audit_auditdefinitions
Exports audit definition objects from the legacy Audit Manager to an XML file
which is a Business Modeler IDE template.
In addition to the XML file containing audit definition data, this utility
also generates a file containing localization data. This file has a _lang
lang.
suffix and is generated in a folder called lang
You can later migrate these files to the new Audit Manager application by
importing and deploying it using the Business Modeler IDE.
Note
If the names of the logged properties in the legacy Audit Manager are the
same as the properties in Fnd0AuditLog object and its sub classes, this
utility adds a _local suffix to the legacy Audit Manager property. This
is done so that the legacy Audit Manager properties do not overwrite the
meta definitions of various Fnd0AuditLog classes.
Syntax
-u=user-id {-p=
migrate_audit_auditdefinitions [-u= -p=password |
-pf=password-file} -g=group]-outfile
-outfile
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administrator privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-id value to be
the password.
This argument cannot be replaced with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-id
value to be the password.
For more information about managing password files, see the Utilities
Reference.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-outfile
Specifies the path and filename where the XML file containing the audit
definition data language file is generated. The language file is also
generated in the same path.
-h
Displays help for this utility.
Restrictions
Requires Teamcenter administrator privileges.
Examples
• To export audit definition objects from the old Audit Manager application:
migrate_audit_auditdefinitions –u=userid -p=password -g=group —outfile=
D:\audit_export\audit_configs.xml
migrate_audit_data
Exports data from the legacy Audit Manager application in a TC XML file that
you can then migrate to the new Audit Manager data model. The contents of the
TC XML file are based on the arguments you specify when you run this utility.
To migrate the audit data to the new Audit Manager data model, you must import
the TC XML file using the bulk loader option and use TIE to create instances
in the database.
You must successfully execute the migrate_audit_auditdefinitions utility
before you run this utility.
Syntax
-u=user-id {-p=
migrate_audit_data [-u= -p=password | -pf=password-file} -g=group]
-path=location-to-export-the-TC-XML-file
-create_before= date-before-which-audit-logs-were-created]
[-create_before=
-create_after= date-after-which-audit-logs-were-created]
[-create_after=
-proc_history=]
[-proc_history=
-proc_history=
-object_type=name-of-the-object]
[-object_type=
-log_type=name-of-the-audit-log-object-in-the-new-Audit-Manager-applicaiton]
[-log_type=
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administrator privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-id value to be
the password.
This argument cannot be replaced with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-id
value to be the password.
For more information about managing password files, see the Utilities
Reference.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-path
Specifies the location to export the TC XML file.
If you do not specify the -path argument, this utility exports the TC XML to
the location from where the utility is generated.
-create_before
Specifies the date before which the audit logs were created.
The date format is %d-%b-%Y %H:%M. For example, 20-May-2010 12:00
12:00.
-create_after
Specifies the date after which the audit logs were created.
12:00.
The date format is %d-%b-%Y %H:%M. For example: 20-May-2010 12:00
proc_history
Specifies the process history audit log
-object_type
Specifies the object type of the audit log.
-log_type
Specifies the audit log object of the new Audit Manager application. The old
audit logs will be migrated to this audit log object.
The valid log types are:
• Fnd0GeneralAudit
• Fnd0FileAccessAudit
• Fnd0LicenseChangeAudit
• Fnd0LicenseExportAudit
• Fnd0OrganizationAudit
• Fnd0ScheduleAudit
• Fnd0StructureAudit
• Fnd0WorkflowAudit
-h
Displays help for this utility.
Restrictions
Requires Teamcenter administrator privileges.
Examples
audit_purge
Archives audit logs in TC XML format based on retention period and audit log
type. This utility also purges audit log records.
Syntax
-u=user-id {-p=
audit_purge [-u= -p=password | -pf=password-file} -g=group]
-logtype= audit-log-business-object-name
-purge | -archive
{-purge -archive}
-sublogtype=process_audit | signoff_audit
[-sublogtype=process_audit signoff_audit]
-retentionperiod= retention-period-of-audit-log-business-object]
[-retentionperiod=
-archivelocation= path-of-archive-location]
[-archivelocation=
-force_retraverse]
[-force_retraverse
-force_retraverse
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administrator privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-id value to be
the password.
This argument cannot be replaced with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-id
value to be the password.
For more information about managing password files, see the Utilities
Reference.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-logtype
Specifies the name of the audit log business object. For example,
Fnd0WorkflowAudit, Fnd0ScheduleAudit
Fnd0WorkflowAudit Fnd0ScheduleAudit.
Note
-purge
Purges the specified audit logs
If you do not specify the retention period with this argument, Teamcenter
selects the retention period from the Fnd0RetentionPeriod business constant.
-archive
Archives the audit log in TC XML format.
If you do not specify the archive location, Teamcenter uses the archive
location specified in the Fnd0ArchiveLocation constant.
If you do not specify the retention period, Teamcenter uses the retention
period specified in the Fnd0RetentionPeriod constant.
-sublogtype
Specifies the sublog types of the Fnd0WorkflowAudit object. The sublog types
of the Fnd0WorkflowAudit object are process_audit and signoff_audit
signoff_audit.
-retentionperiod
Specifies the retention period of the audit log.
The -retentionperiod argument overrides the retention period specified in the
Fnd0RetentionPeriod constant.
-archivelocation
Specifies the path of the archive location.
The -archivelocation argument overrides the retention period specified in the
Fnd0ArchiveLocation constant.
-force_retraverse
Re-archives audit logs. Use this argument with the -archive argument to
archive the same objects again.
-h
Displays help for this utility.
Restrictions
Requires Teamcenter administrator privileges.
Examples
Note
When archiving or purging the Fnd0WorkflowAudit audit log, you must use
the -sublogtype argument with the -logtype argument.
The sublog types of the Fnd0WorkflowAudit audit log are process_audit
signoff_audit.
and signoff_audit
• To purge the process audit logs of the Fnd0WorkflowAudit audit log with a
retention period of 90 days:
audit_purge –u=userid -p=password -g=group -logtype=Fnd0WorkflowAudit
–sublogtype=process_audit -purge –retentionperiod=90
• To archive the process audit logs of the Fnd0WorkflowAudit audit log with a
retention period 90 days:
audit_purge –u=userid -p=password -g=group -logtype=Fnd0WorkflowAudit
–sublogtype=process_audit -archive –retentionperiod=90
• To archive the process audit logs of the Fnd0WorkflowAudit audit log with
c:\archive:
the archive location specified as c:\archive
audit_purge –u=userid -p=password -g=group -logtype=Fnd0WorkflowAudit
–sublogtype=process_audit -archive –retentionperiod=90
–archivelocation=c:\archive
audit_archive
Note
Searches the database for audit log records based on input criteria. Once it
finds the records that must be archived, it processes the archive. If the
-delete_record argument is given, the utility deletes the audit log records.
Audit log entries with an audit definition with a days kept value of -l are
not archived, because -l indicates that the log record is permanent.
Syntax
-u=user-id {-p=
audit_archive [-u= -p=password | -pf=password-file} -g=group]
-delete_record [-type=type-name] [-class=
-delete_record]
[-delete_record -type= -class=class-name] [-event=
-event=event-type]
[-id=object-id]
-id=
-revid=object-rev-id] [-name=
[-revid= -name=object-name] [-owner=
-owner=object-owner-id]
-created_before= archive date] [-created_after=
[-created_before= -created_after= archive date]
-group_name=owner-group-name]
[-group_name=
-obj_seqno=object sequence number]
[-obj_seqno=
-secobj_type=secondary object type name]
[-secobj_type=
-secobj_id=secondary-object-id]
[-secobj_id=
-secobj_name=secondary object type name]
[-secobj_name=
-secobj_revid= secondary-object-rev-id]
[-secobj_revid=
-secobj_seqno= secondary-object-seq-no]
[-secobj_seqno=
-error_code=error-code-of-failed-action]
[-error_code=
-project_id=project-id] [-project_name=
[-project_id= -project_name= project-name]
-overwrite]
[-overwrite
-overwrite [-h-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument cannot be replaced with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-delete_record
Specifies that audit log records are deleted after being archived.
-type
Specifies that the audit logs of the specified object type needs to be archived.
-class
Specifies that the audit logs of the specified class of the object type
needs to be archived.
-event
Specifies that the audit logs of the specified event type needs to be archived.
-id
Specifies that the audit logs of the specified ID of the object needs to
be archived.
-revid
Specifies that the audit logs of the specified revision ID of the object
needs to be archived.
-name
Specifies that the audit logs of the specified name of the object needs to
be archived.
-owner
Specifies that the audit logs of the specified user who created the object
needs to be archived.
-created_before
Specifies that the audit logs of objects created before the specified date
need to be archived.
-created_after
Specifies that audit logs of objects created after the specified date need to
be archived.
-group_name
Specifies that the audit logs of the specified group name associated with the
user who created the object needs to be archived.
-obj_seqno
Specifies that the audit logs of the specified sequence number of the object
needs to be archived.
-secobj_type
Specifies that the audit logs of the specified type of the secondary object
associated with the object needs to be archived.
-secobj_ID
Specifies that the audit logs of the specified ID of the secondary object
associated with the object needs to be archived.
-secobj_name
Specifies that the audit logs of the specified name of the secondary object
associated with the object needs to be archived.
-secobj_revid
Specifies that the audit logs of the specified revision ID of the secondary
object associated with the object needs to be archived.
-secobj_seqno
Specifies that the audit logs of the specified sequence number of the secondary
object associated with the object needs to be archived.
-error_code
Specifies that the audit logs of the specified error code associated with the
failed actions on the object needs to be archived.
-proj_id
Specifies that the audit logs of the specified ID of the project needs to
be archived.
-proj_name
Specifies that the audit logs of the specified project name needs to be
archived.
-overwrite
-1). When used
Archives permanent audit records (those with days kept value of -1
in conjunction with the -delete_record argument, the permanent audit records
are removed from the database.
-h
Displays help for this utility.
Environment
As specified in the Manually configuring your environment for Teamcenter
utilities.
Files
As specified in the Log files produced by Teamcenter.
Restrictions
Requires Teamcenter administrator privileges.
Examples
• ITAR_license_01ITAR license
To archive audit log entries associated with the ITAR_license_01
for actions performed by the user1 user belonging to ADASiteAdministrator
group and created before 30th June 2009:
• To archive audit log entries associated with project1 project name for
actions performed by user1 user belonging to ProjectAdministrator group
and created before 30th September 2010:
audit_archive -u=admin -p=admin -g=dba -class=Requirement -type=Requirement
-project_name=project1 -owner=user1 -group= ProjectAdministrator
-created_before=30-sep-2010 12:00
combine_audit_files
Note
In general, all audit files are generated by the program and you should not
manually edit them. However, in the following situations, you must manually
modify the master files using any text editor, such as vi or Notepad:
perl combine_audit_files.pl source target
Siemens PLM Software recommends that you run this utility and archive the
master audit file periodically, daily, weekly, or monthly, depending upon
the data growth. If the master file grows too big it would be difficult
to open.
A sample of the XML program files is provided in the sample/audit/
directory to view the XML audit data in the web browser. The four files
TcAuditLog.xml,
(TcAuditLog.xml TcAuditLog.xsl, TcAuditLogSchema.xml
TcAuditLog.xml TcAuditLog.xsl TcAuditLogSchema.xml, and TcAuditLog.js
TcAuditLog.js)
must be in the same directory. Opening TcAuditLog.xml in Microsoft Internet
Explorer 5.5 or higher presents audit data in a table similar to the
following that can be sorted and filtered by column.
If you use the TcAuditLog.xml for purposes other than displaying the audit
log on a Web browser, you can modify any of the files. For example, you
can modify the TcAuditLog.xml file so that the style sheet or schema is
not loaded.
combine_audit_files.pl,
None of the files introduced in this section (combine_audit_files.pl
combine_audit_files.pl
TcAuditLog.xml, TcAuditLog.xsl
TcAuditLog.xml TcAuditLog.xsl, TcAuditLogSchema.xsd
TcAuditLogSchema.xsd, and TcAuditLog.js
TcAuditLog.js)
require a Teamcenter environment. You can run them anywhere as long as
you have Perl and Microsoft Internet Explorer.
define_auditdefs
Note
Tip
You can see the list of available events in the Event Type editor of
Business Modeler IDE.
For more information, see the Business Modeler IDE Guide.
Syntax
-u=user-id {-p=
define_auditdefs [-u= -p=password | -pf=password-file} -g=group]
-v]
[-v -f=input-file-name] [-h
-v [-f= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
pom_audit_manager
Allows a site to configure a list of users for whom failed authentication
attempts must be logged and provides the ability to later extract that
information for analysis.
Syntax
-u=user-id {-p=
pom_audit_manager [-u= -p=password | -pf=password-file} -g=group]
-install ]
[-install
-report [-before
[-report -before]]
-before
-purge [-before
[-purge -before]]
-before
-auditable]
[-auditable
-auditable
-set event-name user-name ON|OFF ]
[-set
-delete event-name user-name]
[-delete
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value. This argument is
mutually exclusive with the -pf argument.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-install
Installs audit functionality.
-report [-before]
Shows audit reports. Optionally, you can use the -before argument to show only
those records before the specified date.
The -before argument must be followed by an 8 digits ISO date such as 20071225
for Christmas day 2007.
-purge [-before]
Permanently removes event records from the user access logging list.
Optionally, you can use the -before argument to filter purging to only those
records before the specified date.
The -before argument must be followed by an 8 digits ISO date such as 20071225
for Christmas day 2007.
-auditable
Shows which events are auditable.
POM_AUDIT_purge_audit, POM_AUDIT_bad_password_login
Currently POM_AUDIT_purge_audit POM_AUDIT_bad_password_login,
POM_AUDIT_bad_password_check, POM_AUDIT_change_password events are auditable.
POM_AUDIT_bad_password_check
-set event-name user-name ON|OFF
Adds or removes audit functionality on an event.
-delete event-name user-name
Deletes audit logs for specific events and users.
You can specify the ALL value for either event-name or user-name.
POM_AUDIT_purge_audit, POM_AUDIT_bad_password_login
Currently POM_AUDIT_purge_audit POM_AUDIT_bad_password_login,
POM_AUDIT_bad_password_check, POM_AUDIT_change_password events are auditable.
POM_AUDIT_bad_password_check
-h
Displays help for this utility.
Environment
Standard runtime environment only.
Files
None.
Restrictions
None.
Examples
• To see audit reports before a particular date:
pom_audit_manager —u=admin -p=admin -g=dba
-report -before 20071201
backup_modes
Manages the hot backup of the Teamcenter database and volumes by third-party
backup systems. Use hot backup to avoid shutting down Teamcenter for routine
backups, and to run the system in a near-continuous mode. Manage hot backup
functionality by using this utility to set different backup modes (read-only,
blobby volume, normal) on Teamcenter volumes.
Syntax
-u=user-id {-p=
backup_modes [-u= -p=password | -pf=password-file} -g=group]
-pf=password-file]
[-pf=
-m= {rdonly | normal | blobby | current}
[-m= current}] [-f=
-f= opencnt
opencnt] [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-m
Sets Teamcenter volumes to read-only, normal, or blobby mode. This argument
can also be used to obtain the current backup mode.
rdonly Places Teamcenter into read-only state. This state holds
writing files to the volume during backup.
• blobbyVolume_UNX
• TC_enable_backup_modes
Files
As specified in Log files produced by Teamcenter.
Restrictions
• Before setting Teamcenter to blobby volume mode, ensure that Teamcenter
is in read-only mode.
Examples
• To place Teamcenter volumes in read-only mode, enter the following command:
backup_modes -u=infodba -p=password -g=dba -m=rdonly
• To obtain the current Teamcenter backup mode, enter the following command:
backup_modes -u=infodba -p=password -g=dba -m=current
backup_xmlinfo
Provides information about Teamcenter volumes defined for a site in XML format.
Third-party backup systems require this information for 24x7 hot backup of
Teamcenter volumes and databases. The program creates two output files,
backup.dtd, in the directory from which the utility is executed.
backup.xml and backup.dtd
Syntax
-u=user-id {-p=
backup_xmlinfo [-u= -p=password | -pf=password-file -g=group] -h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
Generate backup information for Teamcenter volumes by executing the following
command:
backup_xmlinfo -u=infodba -p=infodba -g=dba
sfr_instances
Creates and deletes single file recovery instances.
Syntax
-u=user-id {-p=
sfr_instances [-u= -p=password | -pf=password-file} -g=group]
-d=datasettype] [-ou=
[-d= -ou=owning-user] [-og=
-og=owning-group]
-v=volume-name [-ib=
[-v= -ib=any-previous-backupLabel]
-b=new-backup-label [-f=
-f=function] {create | delete | list} [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-d
Specifies the dataset type to which the specified function applies.
-ou
Specifies the owning user of the datasets to which the specified function
applies.
-og
Specifies the owning group of the datasets to which the specified function
applies.
-v
Specifies the volume to which the specified function applies.
-ib
Specifies the previous backup label.
-b
Specifies the backup label associated with the create, list or delete function.
Use -b=ALL to delete all single file recovery instances.
-f= function
Specifies the function for the utility. create creates the single file
recovery instance. delete deletes the single file recovery instances.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
In case this is not already initialized, set the proper values for the
following variables to enable further recovery:
TC_sfr_recovery_interval
TC_sfr_process_life_time
Files
As specified in Log files produced by Teamcenter.
Restrictions
None, however it is a good practice to run this utility after putting
Teamcenter in read-only mode and before putting Oracle in Hot backup mode.
Examples
• To create single file recovery instances associated with the backup_1
backup label, enter the following command:
sfr_instances -u=infodba -p=password -g=dba -b=backup_1 -f=create
• To delete all single file recovery instances in the database, enter the
following command:
sfr_instances -u=infodba -p=password -g=dba -b=ALL -f=delete
Dispatcher
dispatcher_create_rqst
Provides the ability to create a dispatcher request using command line
arguments.
Syntax
The syntax of the dispatcher_create_rqst utility has two forms:
dispatcher_create_rqst
-i=item-ID
-r=revision-ID
-rn=relation]
[-rn=
-dn=dataset-name
-dv=dataset-version-number]
[-dv=
-dt=dataset-type-name
-pr= 1 | 2 | 3]
-pn=translator-provider-name
-tn=service-name
-ty=type-string
-ta1=translation-argument1
[-ta1=
[-ta2=translation-argument2
[-ta3=translation-argument3]]]
-u=user-id -p=password | -pf=password-file -g=group]
[-u=
-debug]
-verbose | -debug
OR
dispatcher_create_rqst
-f=path-name
-dt=dataset-type-name
-pr= 1 | 2 | 3]
-pn=service-provider-name
-tn=service-name
-ty=type-string
-u=user-id -p=password | -pf=password-file -g=group]
[-u=
-debug]
-verbose | -debug
Arguments
Note
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-i
Specifies the item.
-r
Specifies the item revision.
-rn
Specifies the relation name to be used to find the dataset for the given item
revision. This argument is optional. If the relation is not specified, the
value of IMAN_specification is used.
-dn
Specifies the dataset name. This argument is optional.
-dv
Specifies the dataset version. This argument is optional. If no version number
is specified, the latest version is used.
-dt
Specifies the type of the dataset to be translated
-pr
Specifies the translation priority. Accepted values are 1, 2, or 3
corresponding to low, medium and high translation scheduler priority.
-pn
Specifies the name of the translator provider, for example, Siemens.
-tn
ideastojt.
Specifies the name of the translator service, for example ideastojt
-ty
COMMANDLINE.
Specifies the type name, for example COMMANDLINE
-verbose
Provides additional information. This argument is optional.
-f
Specifies an input file used to create one or more dispatcher requests. This
argument is used in lieu of the item, revision, relation name, dataset name,
and dataset version arguments. This argument is optional.
The format for the input file is as follows:
<item ID>,<revision ID>,[relation name],[dataset name],
[version number]
Note
-ta1
Specifies a translation argument.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To create a dispatcher request for the latest version of the I-deas part
dataset related to the Block/A item revision, enter the following command
on a single line:
dispatcher_create_rqst -u=infodba -p=infodba -g=dba
-i=Block -r=A -dt=IdeasPart -pr=2 -pn=Siemens
-tn=ideastojt -ty=COMMAND_LINE
Note
All parts in the file are subject to the same translation, because
the translator is specified on the command line.
dispatcher_util
Allows you to list, delete or resubmit dispatcher requests.
Syntax
dispatcher_util
-u=user-id {-p=
[-u= -p=password | -pf=password-file} -g=group]
-a=list | delete | resubmit
-force]
[-force
-force
-export=file:file path]
[-export=file:
-taskid=dispatcher task ID | file:file path]
[-taskid=
-provider=provider name]
[-provider=
-service=service name]
[-service=
-priority=priority number]
[-priority=
-state=dispatcher state]
[-state=
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-a
Performs the list, delete or resubmit actions.
Choose from the following action values:
• list: Lists dispatcher requests.
list
-force
Forces an action without any prompts.
-export
Exports the information in a file.
-taskid
Specifies the task ID of the dispatcher request.
-provider
Specifies the name of the dispatcher provider, for example, Siemens.
-service
Specifies the service name, for example, tozipfile.
-priority
Specifies the dispatcher priority. Accepted values are 1, 2, or 3 corresponding
to low, medium and high priority.
-state
Specifies the dispatcher state.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• List all high priority dispatcher requests.
dispatcher_util -u=infodba —p=infodba –a=list –priority=3
Migration
convert_distribution_lists
Converts distribution lists to alias lists. Also allows users to create an
alias list by importing data from a text file.
Syntax
-u=user-id {-p=
convert_distribution_lists [-u= -p=password |
-pf=password-file} -g=group]
-all]
[-all -delete]
-all [-delete -dist_list_name= distribution-list-name]
-delete [-dist_list_name=
-import_file=file-name] [-import=
[-import_file= -import=file-name] [-new_list_name=
-new_list_name= alias-list-name]
-overwrite]
[-overwrite
-overwrite [-h-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-all
Converts all the distribution lists to alias lists.
-delete
Deletes distribution lists that were converted to alias lists.
-dist_list_name
Converts a specified distribution list to an alias list.
-import
Creates an alias list from the addresses specified in the file. The format
of the ASCII file is:
abc1@xyz.com
abc2@xyz.com
abc3@xyz.com
-new_list_name
Specifies the name of the new alias list. This argument must be used with
the -import option.
-overwrite
Overwrites the existing alias list.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To convert all distribution lists in the database to alias lists, enter the
following command on a single line:
convert_distribution_lists -all
move_mso_forms
Finds all forms of type OfficeDocForm that are directly attached to folders,
items, or item revisions and moves them to a corresponding dataset as a named
reference when upgrading Teamcenter Engineering 8.x and 9.x databases to a
Teamcenter 10.1 database. These forms are used for property synchronization
between Microsoft Office and the Teamcenter database.
Note
Syntax
-u=user-id {-p=
move_mso_forms [-u= -p=password | -pf=password-file} -g=group] [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
create_project
Creates projects in the database based on command line input or input from
a text file.
Syntax
-u=user-id {-p=
create_project [-u= -p=password | -pf=password-file} -g=group]
-id=project-id -name=project-name
{-id=
-desc=project-description -status=A | I
[-desc=
-teams=group1~role1~user1~group2~role2~user2...
-privileged=group1~role1~user1~group2~role2~user2... ]
[-privileged=
–teamadmin=group~role~user]}
| [–teamadmin=
-input=full-path-to-input-file [-delimiter=
{-input= -delimiter=delimiter-character]} -h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-id
Specifies the ID of the project.
-name
Specifies the name of the project.
-desc
Specifies the project description.
-status
Specifies the status; either active (AA) or inactive (II).
-teams
Specifies group members to be on the project team. This argument accepts valid
user, role, and group names. Use the tilde character (~~) as a delimiter when
specifying group, role, and user, as follows:
-teams=group1~role1~user1~group2~role2~user2...
-privileged
Defines privileged group members using the following format:
-privileged=group1~role1~user1...
-teamadmin
Defines the team administrator using the following format:
-teamadmin=group~role~user
If not specified, the default team administrator is the logged-on user who is
running the utility.
-input
Specifies the path to a text file containing multiple entries of project id,
project name, project description, teams, privileged members, and optional
team administrator. Use this option to create multiple projects.
The syntax of the input file is as follows:
id|name|desc|A or I|group1~role1~user1~group2~role2~user2...|
group1~role1~user1
id|name|desc|A or I|group1~role1~user1~group2~role2~user2...|
group1~role1~user1
id|name|desc|A or I|group1~role1~user1~group2~role2~user2...|
group1~role1~user1
-delimiter
Specifies the delimiting character used in the input file to parse ID, name,
description, status, and teams.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
Input file must conform to the syntax described in the -input argument
description in the Arguments section.
Restrictions
None.
Return Values
Return value upon success 0
Return value upon failure >1
Examples
• 123456, named ABC Car 123 Model
To create a project with ID 123456 Model, description A
Car, with an active status assigned to Car 1 and
high end version of ABC Car
Car 2 groups, enter the following command on a single line:
create_project -u=user-id -p=password -g=group-name -id=123456 -name=”ABC Car 123
Model” -desc=”A high end version of ABC Car -status=A -teams=”Car 1”~Designer~Smith
update_project_data
Updates project data in the Teamcenter database.
Note
Syntax
-u=user-id {-p=
update_project_data [-u= -p=password | -pf=password-file} -g=group]
-f=function] [-force
[-f= -force] -t=relation-type-name1[,relation-type-name2...]]
-force [-t=
-pid=project-ID1[, project-ID2...]] [-h
[-pid= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-f=
Specifies the function performed by the utility. Must be one of the following
options:
update
Updates project-related data and is generally used after site propagation
rules are modified. This function can also be used to cleanse
project-related data that may have been corrupted by system crashes.
This is the default function for this utility.
list
Lists relation types used for site propagation rules. It also lists the
IDs, project administrator, and status of projects defined in the database.
add
Adds relation types of the site propagation rules for project assignment
propagation and updates project data to reflect the change in the rules.
The relation types are given as a comma-separated string.
remove
Removes relation types of the site propagation rules for project assignment
propagation and updates all project data to reflect the change in the
site propagation rules. The relation types are given as a comma-separated
string.
delete
Deletes one or more projects identified by the -pid option.
bomviewon
Enables BOM view propagation. This allows BOM views and BOM view revisions
of an item to be added to the project automatically when the item is
added to a project.
bomviewoff
Disables BOM view propagation. By disabling BOM view propagation, BOM
views and BOM view revisions of an item are not included in the project by
default when the item is added to the project.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Examples
The following examples illustrate the use of the update function:
• Enter the following command to unconditionally update the specified project
in the database using the current site propagation rules:
-f=update -pid=project-id
-f=update -pid=project-id1[,project-id2...]
• Enter the following command to update all projects in the database using
the current site propagation rules:
-f=update
This command is normally used to update all project data after site
propagation rules have been modified. The update algorithm updates project
data for objects with a last project assignment date prior to the last site
propagation rule modification date.
Note
Note
• Enter the following command to append relation types to the site propagation
rules and update the project data related to the projects specified by
the -pid option:
-f=add -t=relation-type-name1[,relation-type-name2...] -pid=project-id1[,project-id2...]
• Enter the following command to remove relation types from the site
propagation rules for specific projects:
-f=remove -t=relation-type-name1[,relation-type-name2...]
-pid=project-id1[,project-id2...]
Note
Server manager
installmgr.bat
Installs the J2EE-based server manager for four-tier environments as
a Windows service. A copy of this script is created in the directory
TC_ROOT\pool_manager\confs\ configuration-name by Teamcenter Environment
Manager (TEM) for each installed server manager instance. Replace
configuration-name with the server manager configuration name. The name
consists of the TEM configuration name and the server manager’s pool ID. This
script is run automatically by TEM but can be run manually if required.
Syntax
installmgr
Arguments
None.
Environment
None.
Files
None.
Restrictions
None.
Examples
To manually install a J2EE server manager named PoolA in a Teamcenter
MyConfig, enter the following command on a single line:
configuration named MyConfig
D:\tc_root\pool_manager\confs\MyConfig_PoolA>installmgr
uninstallmgr.bat
Uninstalls the J2EE-based server manager for four-tier environments as
a Windows service. A copy of this script is created in the directory
TC_ROOT\pool_manager\confs\ configuration-name by Teamcenter Environment
Manager (TEM) for each installed server manager instance. Replace
configuration-name with the server manager configuration name. The name
consists of the TEM configuration name and the server manager’s pool ID.
Syntax
uninstallmgr
Arguments
None.
Environment
None.
Files
None.
Restrictions
None.
Examples
To manually uninstall a J2EE server manager named PoolA in a Teamcenter
MyConfig, enter the following command on a single line:
configuration named MyConfig
D:\tc_root\pool_manager\confs\MyConfig_PoolA>uninstallmgr
mgrstop
Shell script to cleanly stop the server manager for J2EE four-tier
environments. A copy of this script is created in the directory
TC_ROOT/pool_manager/confs/ configuration-name by Teamcenter Environment
Manager (TEM) for each installed server manager instance. Replace
configuration-name with the server manager name. The name consists of the TEM
configuration name and the server manager’s pool ID. On UNIX/Linux systems,
this script is launched by rc.tc.mgr_ config when the stop action is requested.
Note
This command stops a server manager instance; it does not mark a Windows
service as stopped. If the server manager is running as a Windows
service, the Windows Services Manager attempts to restart the manager if
the service is configured for restarting. A server manager running as a
Windows service must be stopped from the Windows Services Manager.
Syntax
mgrstop [-Dimmediate]
Arguments
-Dimmediate
Specifies whether the manager terminates all servers immediately rather than
waiting for them to become idle (which is the default behavior).
Environment
None.
Files
Files in the TC_ROOT/pool_manager/confs/ config directory.
File Description
mgr.tmp Temporary file written by the manager at
startup and deleted when it exits. The file
contains the values of the POOL_ID and the
JMX_HTTP_ADAPTOR_PORT environment variables,
which identify the server manager pool and
the port on which it listens.
password.txt (optional) Contains the user name and the encrypted
password for the server manager administration
interface. This file exists only if the user
name or password has been changed using the
server manager administration interface.
Restrictions
This script must be executed on the machine where the server manager is running.
Examples
To immediately shut down a server manager named PoolA in a server manager
MyConfig, enter the following command on a single line:
configuration named MyConfig
/tc_root/pool_manager/confs/MyConfig_PoolA>mgrstop -Dimmediate
rc.tc.mgr_<config>
Shell script to run the J2EE-based server manager for four-tier environments
as a UNIX/Linux daemon. A uniquely-named copy of this script is created in
the directory TC_ROOT/pool_manager/confs/ config by Teamcenter Environment
Manager (TEM) for each installed server manager instance. Replace config
with the server manager name and pool ID. For example, if the server manager
PoolA, the script has the following name
name is MyConfig and the pool ID is PoolA
and location:
TC_ROOT/pool_manager/confs/MyConfig_PoolA/rc.tc.mgr_MyConfig_PoolA
To install the daemon, this script must be deployed by the system administrator
in the appropriate UNIX/Linux directory as a postinstallation step. The script
is usually launched by the UNIX/Linux operating system in response to system
administration commands.
Syntax
rc.tc.mgr_ config action
Arguments
action
Specifies the daemon control action to be performed:
start
Starts the server manager daemon.
start_msg
Displays a message that the daemon is starting.
stop
Stops the server manager daemon without waiting for servers to become idle.
stop_msg
Displays a message that the daemon is stopping.
status
Displays a message indicating whether the server manager daemon is running.
log
Displays the full output of the server manager.
Environment
None.
Files
None.
Restrictions
None.
Examples
To start a server manager named PoolA in a Teamcenter configuration named
MyConfig, enter the following command on a single line:
MyConfig
/tc_root/pool_manager/confs/MyConfig_PoolA>rc.tc.mgr_MyConfig_PoolA start
Subscription Manager
purge_invalid_subscriptions
Provides the capability to delete invalid and expired subscriptions. For
security reasons, only a system administrator can run this program. The user
is also able to get the numbers of invalid and expired subscriptions without
deleting them.
A subscription references a target object as an external reference. If
the target gets deleted, the subscription becomes invalid. The user can
interactively delete invalid subscriptions in the rich client interface.
Finding a few invalid subscriptions among a large number of subscriptions in
the table sometimes is not easy. In addition, subscriptions expire after
their expiration dates.
Syntax
-u=user-id {-p=
purge_invalid_subscriptions [-u= -p=password |
-pf=password-file} -g=group]
-report]
[-report
-report [-e-e] -h]
-e [-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-report
Reports the numbers of invalid and expired subscriptions without deleting them.
-e
Deletes expired subscriptions in addition to deleting invalid subscriptions.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To delete invalid subscriptions, enter the following command on a single
line:
purge_invalid_subscriptions -u=infodba -p=infodba -g=dba
• To display the help message, enter the following command on a single line:
purge_invalid_subscriptions -u=infodba -p=infodba -g=dba -h
System maintenance
clearlocks
Clears dead process locks from the database. Dead process locks typically
occur when a Teamcenter session terminates abnormally. Process locks are set
on an object when it is being modified or deleted. If a Teamcenter session does
not terminate gracefully (by logging out), these locks can remain in place.
Dead process locks (locks held by dead sessions) can cause diverse problems
that are often difficult to diagnose, and Teamcenter applications make every
effort to eliminate or otherwise avoid them. Nevertheless, there are occasions
when such dead process locks must be explicitly removed from the database, and
the clearlocks utility is used for this purpose.
Note
The clearlocks utility can only obtain general information about the processes
in the lock table. Normally, the PID is pulled from the table and a kill
is sent to the operating system. If the PID exists, the Alive count is
incremented. If the PID does not exist, the Dead count is incremented. A
Remote PID count indicates the process was started from a node other than the
one that was used to run clearlocks. On some platforms, for example, Solaris,
the kill returns a security violation and no specific information about the
PID. If this occurs, the Other count is incremented.
Syntax
-verbose]
clearlocks [-verbose -node_names]
-verbose [-node_names
-node_names
-assert_dead -u=user-id {-p=
[[-assert_dead -p=password | -pf=password-file} -g=group]
|
-assert_all_dead -u=user-id {-p=
[-assert_all_dead -p=password | -pf=password-file} -g=group]]
-h]
[-h
-h
Caution
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument. One of the two
mutually exclusive password elements is required.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-verbose
Displays a summary of processes and states (dead, alive, and unknown). Locks
associated with dead processes are cleared by the clearlocks utility, live
processes are not cleared, and the unknown processes are all other processes.
-node_names
Lists nodes upon which the known processes exist.
-assert_dead
Asserts that all processes on a particular node are dead and clears all process
locks held by sessions running on that node with the exception of Multi-Site
Collaboration transfer locks. If any of those sessions are alive and in use,
the locks held by those sessions are compromised.
Note
To use this argument, you must enter the node name and the
administrator’s user name, password, and group. To clear Multi-Site
Collaboration transfer locks, use the export_recovery utility.
-assert_all_dead
Asserts that all processes in the database are dead and clears all process
locks with the exception of Multi-Site Collaboration transfer locks. If any of
those sessions are alive and in use, the locks held by those sessions will
be compromised. Additionally, this option performs a complete cleanup of the
database lock tables, the POM_TIMESTAMP table, and reports on the sessions
that were asserted to be dead.
Note
To use this argument, you must enter the administrator’s user name,
password, and group. To clear Multi-Site Collaboration transfer locks,
use the export_recovery utility.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
• Do not run the clearlocks utility with the -assert_dead or -assert_all_dead
arguments if there are any active Teamcenter sessions running. Any
locks held by active sessions will be lost and these sessions can then
potentially modify data for which they no longer hold modify locks.
• The clearlocks utility cannot clear the Transfer lock type, only the
Modify lock. To clear Transfer locks, use the export_recovery utility.
This behavior is intended to prevent cases where objects that are being
transferred are forcibly unlocked and thereby exposing them to the
possibility of being modified when their ownership is being transferred.
Examples
• To clear process locks for dead sessions, enter the following command
from that node:
$TC_ROOT/bin/clearlocks
• To obtain a list of all network nodes which have process locks set on the
database, enter the following command:
$TC_ROOT/bin/clearlocks -node_names
• To clear all process locks (active and dead) on a single network node, in
ntssun9, enter the following command:
this example ntssun9
$TC_ROOT/bin/clearlocks -assert_dead infodba infodba dba ntssun9
In this example, infodba is the administrator's user name and password, and
dba is the administrator's group.
• To clear all process locks (active and dead) on all nodes, enter the
following command:
$TC_ROOT/bin/clearlocks -assert_all_dead infodba dba dba
In this example, infodba is the administrator's user name and password, and
dba is the administrator's group.
Clearing
Process Locks
Perform the following steps to clear dead process locks using the clearlocks
utility.
1. Ensure that all Teamcenter and Teamcenter Integration for NX users are
logged out of the system.
When all users are logged out, all valid process locks are cleared.
The system displays a report listing network nodes that still have process
locks set against the database. Because all users are logged off, these
locks are dead and can be cleared.
The system displays a report listing network nodes that still have process
locks set against the database. Because all users are logged off, these
locks are dead and can be cleared.
Any network nodes listed in this second report will require running the
clearlocks utility with the -assert_dead argument to clear the difficult
process locks.
5. Run the following command to clear locks held by the session of the
specified nodes:
$TC_ROOT/bin/clearlocks -assert_dead node-name1 node-name2 node-name3...
This report should be clean (empty). If there are any nodes listed in this
report, contact the Siemens PLM Software Global Technical Access Center
(GTAC) for assistance.
clean_backpointer
Removes relation_type object references and ImanRelation primary and secondary
object references from the backpointer table. As of Teamcenter 10.1, these
objects are stored in the ImanRelation table to improve performance.
Run this utility after upgrading from a version previous to Teamcenter
10.1 if your previous deployment stored relation_type object references
and ImanRelation primary and secondary object backpointer references the
backpointer table, rather than the ImanRelation table.
Syntax
clean_backpointer -u=admin-user-id {-p=
-p=password | -pf=password-file}
[-g=dba-group] [-s=chunk-size|ALL [-m= INFO|DELETE
-g= -s= |ALL] -m= INFO|DELETE] [-c
-c] -h]
-c [-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument. One of the two
mutually exclusive password elements is required.
-g
Specifies the administrative group associated with the user.
If used without a value, the user's default group is assumed.
-s
Specifies how many ImanRelation primary and secondary reference objects to
delete from the backpointer table. Valid values are a positive integer (for
ALL.
example, 100000) or ALL
-m
Specifies whether to provide information about the backpointer table or delete
DELETE.
the specified number of objects. Valid values are INFO and DELETE
-c
Displays the count of rows in the backpointer table.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To determine how many ImanRelation primary and secondary object references
exist in your backpointer table, enter the following command on a single
line:
clean_backpointer -u=infodba -p=password -g=dba -m=INFO
The utility returns the total number of backpointer entries, as well as the
number of ImanRelation objects identified for deletion.
cleanup_recovery_table
Locates and removes all recipe objects resulting from time-out sessions and
client crashes. Typically, recipe objects are deleted when users log off.
But during client crashes or session time-outs, recipe objects may remain in
the database if the session or objects are not recovered. Run this utility
periodically to clear the database of recipe objects.
Syntax
cleanup_recovery_table -u=user-id {-p=
-p=password | -pf=password-file} [-g=
-g=group]
-age=number-of-days] [-report=
[-age= -report=output-file] [-verbose
-verbose] -dryrun]
-verbose [-dryrun -h]
-dryrun [-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-age
Specifies the age (in days) recipe objects must reach to be eligible for
deletion. Recipe objects older than the specified age are deleted when the
utility is run.
By default, the age is processed as 30 if you do not specify a value for
this argument.
-report
Specifies the name of the output report file to which a summary of deleted
recipe objects are logged. The summary states how many recipe objects were
deleted, from how many dead sessions.
Accepts the relative or full path and file name.
-verbose
Logs a complete list of all deleted recipe objects (as opposed to a summary)
to the file specified by the -report argument.
If the -report argument is not specified, the report is output to the console.
-dryrun
Generates a report stating how many recipe objects exist in the database for
how many dead sessions. No recipe objects are deleted.
Siemens PLM Software recommends running this argument first, before actually
deleting recipe objects from the database.
If this argument is run with the -age argument, the report states how many
recipe objects of the specified age exist in the database, relative to the
total number of recipe objects.
If the -report argument is not specified, the report is output to the console.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To delete all recipe objects older than 30 days and write a summarized
report of the deleted objects to the deletedrecipes.txt file, enter the
following command on a single line:
cleanup_recovery_table -age=30 -report=deletedrecipes.txt
• To delete all recipe objects older than 10 days and write a full report of
all deleted objects to the deletedrecipes.txt file, enter the following
command on a single line:
cleanup_recovery_table -age=10 -report=deletedrecipes.txt -verbose
• To test the removal of all recipe objects older than 30 days and write a
summarized report of the deleted objects to the deletedrecipes.txt file,
enter the following command on a single line:
cleanup_recovery_table -age=30 -report=deletedrecipes.txt -dryrun
convert_license_log
Converts a raw license log file into a space-delimited text file. The file can
be read in a text reader or Microsoft Excel. The license log file includes
timestamp, license daemon, license checkin/checkout, feature key, and user
ID. For example:
6:02:45 (lmgrd) TIMESTAMP 5/20/2007
6:02:47 (ugslmd) OUT: "tol_cavity_milling" smeyer@svli6020
6:04:44 (ugslmd) IN: "tol_cavity_milling" smeyer@svli6020
6:04:51 (ugslmd) OUT: "tol_cavity_milling" smeyer@svli6020
6:11:09 (ugslmd) IN: "tol_cavity_milling" smeyer@svli6020
6:11:10 (ugslmd) OUT: "tol_cavity_milling" smeyer@svli6020
6:11:20 (ugslmd) IN: "tol_cavity_milling" smeyer@svli6020
12:02:45 (lmgrd) TIMESTAMP 5/20/2007
12:53:51 (ugslmd) OUT: "gateway" jdahlke@AHI6W022
12:54:02 (ugslmd) OUT: "ufunc_execute" jdahlke@AHI6W022
12:54:02 (ugslmd) IN: "ufunc_execute" jdahlke@AHI6W022
12:58:25 (ugslmd) OUT: "cam_base" jdahlke@AHI6W022
12:58:42 (ugslmd) OUT:
The Teamcenter license log file is stored in the path specified when you
installed the Siemens PLM Software Common Licensing Server to distribute
licenses.
For more information about installing the licensing server, see the Installation
on Windows Servers Guide or Installation on UNIX and Linux Servers Guide.
Syntax
convert_license_log -input=log-file -output= file-name -delimiter= character [-h
-h]
-h
Arguments
-input
Specifies the full path and file name of the log file you want to convert
into a text file.
-output
Specifies the full path and file name of the output file.
-delimiter
Specifies the delimiter character used in the output file. By default, a
comma is used.
Surround the delimiter character with single quotes. For example:
','
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
generate_client_meta_cache
Generates the shared client metadata cache. This utility is run during the
installation and upgrade. Up to three versions of the client meta cache are
saved in the server.
Following are some of the situations when you should run this utility:
• all argument) if the client cache folder
Generate the full client cache (all
has been deleted.
Metadata is cached on the client computer, eliminating server calls for the
cached metadata. When a client logs on to the server, the client cache is
placed at the following location on the client machine:
home-path\Teamcenter\RAC\session\metacache
• ClientCache folder
Stores cached metadata. If you are logged on to the rich client as a
database administrator (DBA), you see the folder under the Home location.
For more information, see the Rich Client Interface Guide.
Warning
• TC_SKIP_CLIENT_CACHE
Causes the rich client to run in legacy mode and avoid downloading or using
a local client meta cache.
For more information, see the Preferences and Environment Variables
Reference.
Syntax
-p=password |
-u=infodba {-p=
generate_client_meta_cache [-u=infodba
-pf=password-file} -g=group]
command [generate
generate | update | delete | report | tickets | context
context]
cache [all
all | types | lovs |stylesheets
stylesheets | textservers | preferences
preferences]
-log=log-file-path
-delta=differences-file-path
l1=language
l2=language
-err=error-file-name
-t=timings
-remote
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
update
Updates the client cache as needed. This is the default setting.
delete
Deletes the client cache.
report
Reports on the state of the client cache.
tickets
Generates tickets for the feature.
context
Checks context for LOVs.
cache
Specifies the client cache to work on.
all
Generates all the available client cache files. This is the default setting.
types
Generates the types cache. This includes the metadata of business objects,
property descriptions, and lists of values.
lovs
Generates the list of values (LOVs) cache.
stylesheets
Generates the style sheets cache.
textservers
Generates the text server cache.
preferences
Generates the site preferences cache.
-log
Specifies file path and name of the log file that contains the results of this
execution. The default log file is written to the TEMP directory.
This argument is optional.
-delta
Specifies the file path and name of the file into which data model differences
are written.
-l1
Specifies the first language for which to generate the client cache, for
en_US, de_DE
example, en_US de_DE, es_ES
es_ES, fr_FR
fr_FR, pt_BR
pt_BR.
-l2
Specifies the second language for which to generate the client cache.
-err
Specifies the error file name. The default error file is written to the TEMP
directory.
-t
Specifies time function calls.
-remote
Specifies remote start. This generates log files.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To generate or regenerate all the client meta cache, enter the following
command on a single line.
generate_client_meta_cache generate all -u=infodba -p=password -g=dba
This command keeps the previous version of cache data in the server. Up to
three versions for all the client meta cache are retained on the server.
• To generate style sheet client meta cache, enter the following command
on a single line.
generate_client_meta_cache generate stylesheet -u=infodba -p=password -g=dba
• To generate text server files client meta cache, enter the following
command on a single line.
generate_client_meta_cache generate textservers -u=infodba -p=password -g=dba
generate_metadata_cache
Generates the metadata shared server cache dataset. The cache is generated
only if constant, type, or property metadata is updated since the last update.
The -force argument forces regeneration of the cache.
If you receive the following message, an administrator must run this utility
on the server:
The schema file is out of date. Please regenerate.
This indicates that when a template containing schema changes was installed
to the server, the Generate Server Cache check box was not selected in
Teamcenter Environment Manager (TEM) or the Business Modeler IDE. (It is also
possible that the error message appears because the server instance the user
is attempting to connect to does not have an up-to-date server cache. The
user should log off and log on several times to connect to a fresh server
instance. If the error message persists, the user should contact the server
administrator to regenerate the server cache.)
For more information about managing shared server cache, see the System
Administration Guide.
Syntax
generate_metadata_cache -u=user-id {-p=
-p=password | -pf=password-file} [-g=
-g=group]
-force]
[-force
-force
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-force
Forces creation of the dataset even if a correct version already exists.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
install_event_types
Defines which event and object types can be subscribed to and/or audited. This
utility also add event types to an object type.
Caution
Syntax
-u=user-id {-p=
install_event_types [-u= -p=password | -pf=password-file} -g=group]
-f=function {install | add | remove | modify | listValidEvents
-overwrite]
| listEventtypes | text-file-name} [-overwrite
-overwrite
-eventtype=eventTypeId] [-imantype=
[-eventtype= -imantype=imanTypeName]
-imanclass=imanClassName] [-remove
[-imanclass= -remove] -audit]
-remove [-audit -noaudit]
-audit [-noaudit
-noaudit
-subscribe]
[-subscribe -nosubscribe]
-subscribe [-nosubscribe
-nosubscribe [-h-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-f
Specifies the mode in which the utility executes. The mode must be one of
the following:
• install
Installs standard event types and event type mappings.
• add
Adds the event type to the specified imantype and imanclass.
• remove
Removes event types or event type mappings.
• modify
Modifies event type mapping.
• listValidEvents
Lists valid event types for the specified imanclass and imantype.
• listEventtypes
Lists all the event types in the database.
• text-file-name
Specifies the file name used to create event type mappings, modify event
type mappings, or delete event types and event type mappings.
-overwrite
Overwrites existing definitions, if any, during installation. Valid only with
the -f=install and -f=input-file arguments.
-eventtype
Specifies the event type ID when creating or deleting event types or event
type mappings.
-imantype
Specifies the imantype name when creating or deleting event types or event
imantype.
type mappings or when listing valid event types for that particular imantype
-imanclass
Specifies the imanclass name when creating event type mappings, deleting event
imanclass.
type mappings, or listing valid event types for that particular imanclass
-remove
Use with the -f=file-name option to perform the remove operation (remove event
types and event type mapping) on the file data.
-audit
Specifies that the event type can be audited. Valid only with the -f=modify
argument.
-noaudit
Specifies that the event type cannot be audited. Valid only with the -f=modify
argument.
-subscribe
Specifies that the event type can be subscribed to. Valid only with the
-f=modify argument.
-nosubscribe
Specifies that the event type cannot be subscribed to. Valid only with the
-f=modify argument.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
When deleting event types and event type mappings using a file, all event type
mappings for the event type must be deleted prior to deleting event type
itself. For more information, see the example for using the -f=file-name
-remove option, below.
Examples
• To install the default event types and event type mapping definitions,
enter the following command on a single line:
install_event_types -f=install -overwrite
• To add the MyEventType event type as a valid event type for the Teamcenter
Item, enter the following command on a single line:
type Item
install_event_types -f=add -imantype=Item -imanclass=Item
-eventtype=MyEventType
• Item, enter
To remove the MyEventType event type from the Teamcenter type Item
the following command on a single line:
install_event_types -f=remove -imantype=Item -imanclass=Item
-eventtype=MyEventType
Note
• To set the MyEventType event type as subscribable but not auditable for the
Item, enter the following command on a single line:
Teamcenter type Item
install_event_types -f=modify -imantype=Item
-imanclass=Item -eventtype=MyEventType -audit -nosubscribe
• To list all event types defined in the database, enter the following
command on a single line:
install_event_types -f=listEventtypes
• To read the specified file, define new event types to install, (each line
with an event type name) and defines event type mappings (each line with
an event type mapping) in the following format:
iman_type_name, iman_class_name, event_type_name, subscribable_flag,
auditable_flag
install_event_types -f=C:\temp\my_event_types.txt -overwrite
C:\temp\my_event_types.txt:
In the C:\temp\my_event_types.txt
my_event_type_1
my_event_type_2
EngChange,Item,my_event_type_1,true,true
EngChange,Item,my_event_type_2,true,false
EngChange Revision,ItemRevision,my_event_type_1,true,true
EngChange Revision,ItemRevision,my_event_type_2,true,false
• To read the specified file, delete event type mappings, (each line with an
event type mapping) and delete event types (each line with an event type
name) in the formats shown, enter the following command on a single line:
install_event_types -f=C:\temp\my_event_types.txt -remove
list_types
Lists all types in the Teamcenter database. Use the output of this utility as
input to the database_verify utility for the offline case.
Syntax
-u=user-id {-p=
list_types [-u= -p=password | -pf=password-file} -g=group]
-outfile=output-file-name] [-h
[-outfile= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-outfile
Specifies the name of the file to contain the output. If this argument is not
specified, all types information is displayed on the console.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
None.
list_users
Creates a list of users currently logged on to Teamcenter and the node they
are using. This information is useful if database maintenance is necessary
and all users currently logged on must be notified.
Syntax
-u=user-id {-p=
list_users [-u= -p=password | -pf=password-file} -g=group] [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
None.
migrate_home_folder
Finds the instances of the home folder for all users in the Teamcenter
Fnd0HomeFolder. The
database and modifies the object_type property value to Fnd0HomeFolder
Fnd0HomeFolder business object represents the home folder and is a child of
the Folder business object.
This utility is run automatically during upgrade. You only need to run it
manually if the utility did not complete during upgrade.
By default, this utility finds and process only the unmigrated instances. You
can force it to process the objects that are already migrated by specifying
the -force_rerun argument. You can rerun the utility any number of times. You
can process all the home folder instances in bulk using the -objects argument.
Syntax
migrate_home_folder -u=user-ID {-p=
-p=password | -pf=password-file} [-g=
-g=group]
-objects=number-of-objects-per-iteration]
[-objects=
-force-rerun]
[-force-rerun
-force-rerun
-log=log-file-path]
[-log=
-v]
[-v
-v
-h]
[-h
-h
Arguments
-u
Specifies the user ID. The user must have administrative privileges.
If this argument is used without a value, the operating system user name
is used.
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
-objects
Specifies the number objects to be processed per iteration. The default value
is 1000 objects. The input value must be a positive integer. If the number of
objects specified exceeds the maximum objects in the database, this utility
processes all instances in the first iteration itself.
-force_rerun
Forces the utility to query and migrate the instances that are already migrated
along with unmigrated instances.
-log
Specifies the path for the log file. The log file contains the information
about the number objects successfully migrated, the number of objects not
migrated, the time taken to complete the operation, and so on. If this argument
is not specified, the log file is generated under the directory defined by
the TC_TMP_DIR environment variable.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
Apart from the default log files specified in Log files produced by Teamcenter,
this utility generates an additional log file with the details of the number
of instances migrated, the number of instances that failed to migrate, and the
time taken to complete the operation. The additional log file has this format:
migrade_home_folder YYYY_MM_DD_HH_MM_SS.log
You can find it in the directory specified by the TC_TMP_DIR environment
variable.
Restrictions
You must be a Teamcenter administrator to execute this utility.
Examples
• To migrate all home folder instances in the database with up to 5000
objects per iteration, enter the following command.
migrate_home_folder -u=infodba -p=password -g=dba -objects=5000
purge_file_cache
Cleans up the file cache based on last access date of the files in the cache.
It also deletes any file from the cache that no longer exists within the
Teamcenter volume.
Syntax
-u=user-id {-p=
purge_file_cache [-u= -p=password | -pf=password-file} -g=group]
-max=megabytes-to-remain-in-cache] [-h
[-max= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-max
Specifies the maximum size, in megabytes, of the file cache after the purge
is performed. If the parameter is not used, only files that are no longer
available in the Teamcenter volume are purged.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
The purge_file_cache utility must be run by a user with the privileges required
to delete files from the cache directory at the operating system level.
Examples
• The purge_file_cache utility can be used to clean up the file cache so that
at most only 10 megabytes of data remain after purging, as follows:
purge_file_cache -u=smith -p=password -g=design -max=10
• In this example, the files that are no longer available in the Teamcenter
volume are purged from the cache.
purge_file_cache -u=smith -p=password -g=design
reset_user_home_folder
Repairs corruption that may occur when deleting a user from the database by
redirecting the user's home folder, mailbox folder, and Newstuff folder to the
home folder of the administrator running this utility.
If a home folder owned by the administrator is found, the utility points
the deleted user's home folder back the administrator's home folder. If the
administrator's home folder is not found, the utility creates a new home folder
and redirects the deleted user's home folder to it.
Syntax
%TC_BIN%\reset_user_home_folder [-u=
-u=user-id {-p=
-p=password | -pf=password-file}
-g=group] -id=user-id-whose-home-folder-is-to-be-reset [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-id
Specifies the user ID of the user who owns the home folder to be reset.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
None.
site_util
Performs site-related maintenance, such as creating and deleting remote sites,
setting ownership, and changing the ID of remote sites.
Syntax
-u=user-id {-p=
site_util [-u= -p=password | -pf=password-file} -g=group]
-f=function [-site_id=
-site_id=site-id] [-site_name=
-site_name=site-name]
-node_name=node-name] [-gms_url=
[-node_name= -gms_url=gms-url]
-ods= y | n] [-hub=y
[-ods= -hub=y | n] [-http=y
-http=y | n] [-tcxml=y
-tcxml=y | n] [-offline=y
-offline=y | n]
-replicaDel=y | n] [-display_only
[-replicaDel=y -display_only]
-display_only [-h-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-f
Specifies one of the following functions:
create
Defines a remote site in the local database.
set_id
Changes the current ID of a remote site. This function corrects errors
made while defining sites and must be used with extreme caution.
Caution
modify
Changes attributes of a site other than the site ID and may be used for
local or remote sites. The -site_id argument is required to identify the
site being modified. Only the given attributes are modified.
delete
Deletes a remote site from the local database. Only those sites not
referenced by any object in the local database can be deleted. This
function cannot be used for the local site. The -site_id argument is
required when using the delete function.
list
Lists all defined sites in the database and their attributes. No attribute
switch is required.
fix_site_ownership
Sets the ownership of all defined sites in the database as being owned
by the local site. Use this when you encounter an error stating that
you cannot export a POM_imc object because it is owned by another site.
This can be run while users are logged on to the database. No attribute
switch is required.
-site_id
Specifies the ID of the site to which the specified function applies.
-site_name
Specifies the name of the site when creating or modifying sites.
-node_name
Specifies the node name when creating a new site. This argument can also be
used when modifying site properties. If the value of the -http argument is set
to y, the value of -site_name can be a URL of an SOA.
-gms_url
Specifies the URL for Global Services.
-ods
Specifies whether the site being created or modified is an Object Directory
Services (ODS) site. For more information about Object Directory Services,
see Multi-Site Collaboration Guide.
-hub
Specifies whether the site being created or modified is a hub. For more
information about hub configurations, see Multi-Site Collaboration Guide.
-http
Specifies whether to use the HTTP protocol or remote procedure call (RPC)
protocol.
-tcxml
Specifies the utility uses TC XML payload instead of an object manager.
-offline
Specifies that the site has no network connection to the local site. This
argument is intended to avoid sending unnecessary messages to a site when
a replica is deleted.
-replicaDel
Switch that indicates objects replicated to a given site can be deleted as long
as the object is not replicated to other sites that do not have this property.
-display_only
Determines whether it is necessary to fix site ownership. This argument must
be used in conjunction with the fix_site_ownership function. A returned count
greater than zero indicates that site ownership must be fixed by running the
utility using the fix_site_ownership function.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To define a new remote site in the local database, enter the following
command on a single line:
site_util -f=create -site_id=123456789 -site_name=Site1
-node_name=node1 -ods=y
• To change the node name of a site, enter the following command on a single
line:
site_util -f=modify -site_id=123456789 -node_name=node2
A returned count greater than zero indicates that site ownership must be
fixed by running the utility using the fix_site_ownership function.
runBatch
Script that allows a site to execute a group of translations together. The
translations are contained in either the default testxml\TranslationPerf.xml
file or any other XML file and the path of the XML file must be passed as
argument.
Syntax
-u=user-id {-p=
-p=password | -pf=password-file} [-g=
-g=group]
TranslationManagementRootDir /AdminClient/bin/runBatch
-help input-batch-xml-file-path
-help]
[-help
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
input-batch-xml-file-path
Input batch XML file path. This argument is optional. If the path is not
..\testxml\TranslationPerf.xml.
specified, the system uses the default path as ..\testxml\TranslationPerf.xml
-help
Displays help for this utility.
Environment
None.
Files
None.
Restrictions
None.
Examples
• The following is an example of a translation XML file:
<?xml version="1.0"?>
<!--
This software and related documentation are proprietary to UGS Corp.
COPYRIGHT 2007 UGS CORP. ALL RIGHTS RESERVED
-->
<TranslationTasks>
<!-- RootDir is the common directory for all the Input files in this xml file. >
< This can be absolute path or relative path from AdminClient/bin Directory. -->
<RootDir value="../data"/>
<!-- To add more tasks to the batch, copy and insert more TranslationTask elements -->
<TranslationTask Submits="1" Provider="UGS" Service="tozipfile" context="Translation">
<Priority value="2"/>
<!-- For time based tasks uncomment Time tag. Time format is "MM/dd/yyyy HH:mm" -->
<!--Time value="01/25/2007 17:33"/-->
<Options>
<Option key="Test_Key" value="Test_Value"/>
</Options>
<!-- If RootDir is specified input file path is value of "RootDir + Input". >
< If RootDir is not specified input file path is value of "Input" and >
< has to be absolute path. >
< This applies to the both Input and Dependant element attribute. -->
<Input value="ssw_idi0001.idi"/>
<!-- Dependant values take * wildcard -->
<!-- Dependant value="*.dep"/ -->
</TranslationTask>
</TranslationTasks>
tc_mail_smtp
Sends SMTP (Simple Mail Transfer Protocol) e-mail. Use this platform-independent
utility when sending e-mail on both UNIX and Windows platforms.
Syntax
tc_mail_smtp -u=user-id {-p=
-p=password | -pf=password-file} [-g=
-g=group]
-to=address |-to_list_file=
{-to= -to_list_file= email-list-file-name} [-cc=
-cc=address]
-bcc=address] [-subject=
[-bcc= -subject=subject-line] [-server=
-server=mail-server-name
[:port]] [-port=
-port=] -body=file-name[-body=
-port= [-body= -body=alternate-file-name]]
-attachments=file-name] [-user=
[-attachments= -user=sender's-name] [-validation=
-validation=validation-mode]
-testmode=file-name] [-h=
[-testmode= -h=]
-h=
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-to
Specifies the e-mail address of the recipient. If there are multiple
recipients, use a -to argument for each recipient.
Either this argument or the -to_list_file argument is required.
-to_list_file
Specifies the full path and file name of the file containing the list of e-mail
addresses. Each line of the file must contain a full e-mail address.
Either this argument or the -to argument is required.
-cc
Specifies the e-mail address of the carbon-copied recipient. If there are
multiple recipients, use a -cc argument for each recipient.
-bcc
Specifies the e-mail address of the blind carbon-copied recipient. If there
are multiple recipients, use a -bcc argument for each recipient.
-subject
Specifies the subject line of the e-mail. Accepts a string up to 100
characters. Enclose the string text in double quotes.
-server
Specifies the name of the mail server. Accepts a string up to 100 characters.
Optionally, you can define the mail server port within this argument. For
example:
-server=myserver:1234
Alternatively, you can define the mail server port using the -port argument.
If you do not use either method to specify the mail server port, the SMTP mail
25)
port (25
25 of the local machine is used.
-port
25)
Specifies the mail server port. If not defined, the SMTP mail port (25
25 of the
local machine is used.
-body
Specifies the full path (limited to 200 characters) to the file containing the
text of the e-mail body. Limited to 200 characters. You can also specify an
alternate file name, in a different format. Files can be either text files or
.HTM.) For example:
HTML files. (HTML files extensions can be only .htm or .HTM
-body=C:\correspondence\body\filename1.txt
-body=C:\correspondence\body\filename2.htm
You can use this argument to specify a total of one text file, or one HTML
file, or one text file and one HTML file. You cannot specify, two or more
text files, or two or more HTML files.
If you specify one text file and one HTML file, the e-mail always contains
the text message first, and then the HTML message, regardless of the order in
which you sent the argument values.
If you specify multiple values for the same body type, the last value entered
in the command line for this argument is read by the system. For example, if
you specify:
-body=C:\correspondence\body\filename1.txt
-body=C:\correspondence\body\filename2.txt
-body=C:\correspondence\body\filename3.txt
Only the contents of filename3.txt are added to the body of the message.
-attachments
Specifies the full path and file name of one or more attachment lists and the
format of each attachment (BB=binary text, T=text). The full path and file
name cannot exceed 200 characters.
For example, you can specify the full path of the location of the bin_file
file and indicate the file is a binary file:
C:\correspondence\attachments\attachment1\bin_file=B
To include graphics within the HTML body of an e-mail, specify the image source
img src=cid: myimage.jpg
within the HTML (img .jpg), and then specify the same image
source within the attachment file. For example:
C:\correspondence\attachments\attachment1\myimage.jpg=B
-user
Specifies the name of the user from whom the e-mail is sent. If not defined,
the login name of the local machine is used.
-validation
Determines the behavior of e-mail delivery if an invalid e-mail address is
entered.
0
E-mail delivery continues, even if incorrect e-mail addresses are
encountered. No error is returned. This is the default setting.
1
E-mail delivery continues, even if incorrect e-mail addresses are
encountered. An error is returned.
2
E-mail delivery is sent first to recipients on the To list, then the CC
list, and then the BCC list. Delivery stops at the first invalid address.
An error is returned.
-testmode
stderr,
Allows you to print a test of the e-mail output. Specify either stderr
stdout, or the full path and file name to the stderr file.
stdout
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• When defining the formatting of the attachment list, each line in the list
must consist of an attachment file name and its file format.
attachment_list.txt, and
Assume that the attachment list file is called attachment_list.txt
the list's content is:
C:\temp\BAR_RED.JPG=B
C:\temp\test.txt=T
This results in two files being included as attachments, one binary file
test.txt. Both files are located
named BAR_RED.JPG and one text file named test.txt
in the C:\temp\ directory.
tc_mail_smtp -subject="my test"
-to=person1@company1.com -to=person2@company2.com
-cc=person3@company3.com
-bcc=person4@company4.com
-server=mail_server_1
-body=C:\temp\test.txt -attachments=C:\temp\attachment_list.txt
-user=person5
uih_to_xml
Converts existing UIH files to XML files that serve text and error messages.
Syntax
-u=user-id {-p=
uih_to_xml-u=
uih_to_xml -p=password | -pf=password-file} [-g=
-g=group]
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
file1 .uih file2 .uih...
Lists UIH files to be converted to XML. If no file is specified, the current
directories and subdirectories are searched for UIH files, which are then
translated to XML.
-d= my / directory
Parses XML files in a given directory and related subdirectories.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
There are two basic examples for this utility.
• The following example traverses the current directory and all subdirectories
searching for UIH files and translates them to XML files:
uih_to_xml
• The following example translates only the specified UIH files into their
corresponding XML files:
uih_to_xml ss_errors.uih ae_errors.uih
Document management
pdfgenerator
Translates Microsoft Office (Word, Excel, PowerPoint, and Project) documents,
.eps),
Postscript, Encapsulated Postscript (.eps
.eps .psd),
Adobe Photoshop (.psd
.psd
WordPerfect, rich text, bitmap, GIF, JPEG, TIFF and multipage TIF to Adobe
PDF file format.
You need the source authoring applications such as the MS Office documents
(Word, Excel, PowerPoint or/and Project), Adobe Acrobat, and Adobe Live Cycle
PDF Generator ES to run this program.
Syntax
-u=user-id {-p=
-p=password | -pf=password-file} [-g=
-g=group]
DispatcherRootDirectory/Module/translators/docmgt_translators/
pdfgenerator.bat -inputDir =source directory path -inputFile =full
path of the source file to be translated-outputDir =output
directory path-outputType =output format
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-inputDir
Specifies the complete path of the input directory.
-inputFile
Specifies the path of the input file and the input file name. This is the
source file to be translated.
-outputDir
Specifies the path of the output file.
-outputType
PDF.
Specifies the output format. The default is PDF
Environment
None.
Files
None.
Restrictions
Requires Dispatcher, Adobe PDF Generator ES, and source authoring applications
like the MS Office.
Examples
• To translate a MS Word file named testfile.doc file to a PDF file named
testfile.pdf, enter the following command on a single line:
testfile.pdf
Pdfgenerator.bat -inputDir c:\temp\ -inputFile c:\temp\testfile.doc -outputDir
c:\temp\ -outputType PDF
export_attr_mappings
Exports attribute mappings from the Teamcenter database to a text file.
Syntax
export_attr_mappings -file=text-file [-test
-test]
-test
-u=user-id {-p=
[-u= -p=password | -pf=password-file} -g=group]
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-file
Specifies the name of the file to be written to.
-test
Exports the test mappings rather than the actual mappings.
-h
Displays help for this utility.
Environment
This utility must be run in the Teamcenter shell environment.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
import_attr_mappings
Imports attribute mappings into the Teamcenter database. Siemens PLM Software
recommends that you initially import the mappings using the -test argument and
verify the accuracy of the mappings before making them generally available.
Syntax
import_attr_mappings -file= text-file [-test
-test] -dryrun]
-test [-dryrun
-dryrun
[-u=user-id {-p=password
-u= -p= | -pf=password-file} -g=group] [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-file= text-file
Specifies the name of the input file.
-test
Imports the file without overwriting the existing mapping file.
-dryrun
Parses the file but does not save the mappings.
-h
Displays help for this utility.
Environment
This utility should be run from a shell where the Teamcenter environment is set.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
refile_info
Generates a list of identifiers of every item revision in the database.
The identifiers include keys. This utility is used in conjunction with the
NX ug_refile utility to refile all UGMASTER and/or UGPART datasets in the
database. Refer to NX online help for additional information.
Syntax
-u=user-id {-p=
refile_info [-u= -p=password | -pf=password-file} -g=group]
-o=file-name
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-o
Specifies the name of the file to which the list of item revision identifiers
is written. If no output file name is specified, the default file name
item_revision_list is used.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
To generate a list of identifiers of all item revisions in the database and
item_revision_list, enter the following command
write it to a file called item_revision_list
on a single line:
$TC_ROOT/bin/refile_info -u=infodba -p=password -g=dba -o=item_revision_list
tess_server
Starts the tessellation server which translates UGMASTER/UGALTREP datasets to
JT datasets.
Syntax
-u=user-id {-p=
tess_server {-s | -c} [-h] [-u= -p=password |
-pf=password-file} -g=group]
{-s | -c} [-h]
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-s
Starts the tessellation server.
-c
Stops the tessellation server.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• Enter the following command to start the tessellation server:
tess_server -s
• Enter the following command to display help for the tess_server utility:
tess_server -h
nxmgr_upgrade_bvrsyncform
Upgrades assemblies created in a Teamcenter Engineering version earlier than
Form. The form is created only if the last
8.0 to use the BVRSyncInfo Form
synchronization date exists in the PDI reprev cache.
Syntax
-u=user-id {-p=
nxmgr_upgrade_bvrsyncform [-u= -p=password |
-pf=password-file} -g=group]
-input_list=file-name] [-folder=
[-input_list= -folder=folder-name] [-item=
-item=item-id] [-rev=
-rev=revision-id]
-output_file=file-name] [-log_file=
[-output_file= -log_file=file-name]
-bypass=boolean] [-resume_from=
[-bypass= -resume_from=line-number] [-update_mod_props=
-update_mod_props= boolean]
-upgrade_released= boolean] [-h
[-upgrade_released= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-input_list
Specifies the name of the file containing a list of specifications (either
as handles or in @DB/item/rev format), of items to upgrade. This argument
-item,
is optional, but you must specify one of the following arguments: -item
-input_list, or -folder
-input_list -folder.
-folder
Specifies the name of the folder listing items to upgrade. This argument
-item,
is optional, but you must specify one of the following arguments: -item
-input_list, or -folder
-input_list -folder.
-item
Specifies the ID of the item to upgrade (upgrades all the revisions). This
argument is optional, but you must specify one of the following arguments:
-item, -input_list
-item -input_list, or -folder
-folder.
-rev
Specifies the revision ID of the item to upgrade. Use with the -item argument.
-output_file
Specifies the name of the file to write failure information to.
-log_file
Specifies the name of the file to write log information to.
-bypass
Specifies whether to use bypass privilege if necessary. Valid values are
no.
yes and no
-resume_from
Specifies the line number of the input list to resume processing from.
The -resume_from argument is applicable only if the -item argument is used.
-update_mod_props
Specifies whether to update the last modifying user and date on objects.
no.
Valid values are yes and no
-upgrade_released
Specifies whether to upgrade item revisions with release status. Valid values
no.
are yes and no
-h
Displays help for the utility.
Environment
Requires the standard Teamcenter environment for running Integration Toolkit
programs.
Files
As specified in Log files produced by Teamcenter.
Restrictions
This utility is supported for Hewlett-Packard HP-UX, Sun Solaris, and Microsoft
Windows systems only.
Examples
• The following example displays the usage message:
nxmgr_upgrade_bvrsyncform -h
• The following example upgrades the UGMASTER dataset attached under the
parent A item with the new BVRSYNCINFO named reference:
nxmgr_upgrade_bvrsyncform -item=parent -rev=A
• The following example upgrades the items contained in the list.txt file
(either as handles or in @DBitem/rev format).
nxmgr_upgrade_bvrsyncform -i=list.txt
nxmgr_upgrade_transforms
Upgrades transforms.
Syntax
-u=user-id {-p=
nxmgr_upgrade_transforms [-u= -p=password |
-pf=password-file} -g=group]
-i=input-list-file-name] [-f=
[-i= -f=folder-name] [-item=
-item=item-id] [-rev=
-rev=revision-id]
[-out=output-file-name] [-log=log-file-name][-bypass= boolean] [-resume=
-out= -log= -bypass= -resume=line-number]
-update_mod=boolean] [-upgrade_release=
[-update_mod= -upgrade_release= boolean]
-force_units=measurement-unit]
[-force_units=
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-i
Specifies the name of the file containing the input list of specifications
(either as handles or in @DB/item/rev format), of items to upgrade. This
argument is optional, but you must specify one of the following arguments:
-item, -input_list
-item -input_list, or -folder
-folder.
-f
Specifies the name of the folder listing items to upgrade. This argument
-item,
is optional, but you must specify one of the following arguments: -item
-input_list, or -folder
-input_list -folder.
-item
Specifies the ID of the item to upgrade (upgrades all the revisions). This
argument is optional, but you must specify one of the following arguments:
-item, -input_list
-item -input_list, or -folder
-folder.
-rev
Specifies the revision ID of the item to upgrade. Use with the -item argument.
-out
Specifies the name of the output file to which failure information is written.
-log
Specifies the name of the log file to which log information is written.
-bypass
Specifies whether to use bypass privilege if necessary. Valid values are
no.
yes and no
-resume
Specifies the line number of the input list from which to resume upgrade
processing.
This argument is applicable only if the -item argument is used.
-update_mod
Specifies whether to update the last modifying user and date on objects.
no.
Valid values are yes and no
-upgrade_release
Specifies whether to upgrade item revisions with release status. Valid values
no.
are yes and no
-force_units
Specifies measurement unit of revisions being upgraded. Valid values are
millimeters.
inches and millimeters
Note
Caution
-h
Displays help for the utility.
Environment
Requires the standard Teamcenter environment for running Integration Toolkit
programs.
Files
As specified in Log files produced by Teamcenter.
Restrictions
This utility is supported for Hewlett-Packard HP-UX, Sun Solaris, and Microsoft
Windows systems only.
Examples
• The following example displays the usage message:
nxmgr_upgrade_transforms -h
• The following example upgrades the transforms for the parent A part. This
part must be created by NX 18 or later and have a UGPART-ATTRIBUTES named
reference form attached to the UGMASTER dataset.
nxmgr_upgrade_transforms -item=parent -rev=A
• The following example upgrades all revisions of the top item asserting that
this part was modelled in inches:
nxmgr_upgrade_transforms -item=top -bypass=yes -force_units=inches
tcc_context_upload
Uploads fully or partially configured assemblies to Teamcenter Community after
downloading them from Teamcenter. This utility does the following:
1. Sets up the staging directory to store the temporary files.
2. Executes a search in RDV setup and downloads the resulting data into a flat
file (AJT or PLM XML) by calling the rdv_context_download utility.
3. Calls the asciitojt utility to convert the AJT file downloaded in Step 2
into the JT format.
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-sco_name
Specifies the name of the structure context object.
-item_id
Specifies the item ID.
-rev_id
Specifies the revision ID.
-key
Specifies the key of the item. Use the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
• WebDesignContextDefaultSearchDistance
• PortalDesignContextMaxMatchingObjects
• PortalDesignContextMaxMatchingBOMLines
For more information, see the Preferences and Environment Variables
Reference.
-variant_rule_name
Specifies the name of the variant rule.
-revision_rule_name
Specifies the revision rule, which defaults according to the TC_config_rule_name
preference.
-title
-I.
Specifies the base name of the JT file. If not specified, it defaults to -I
-stage
/tmp). If not specified, it defaults
Specifies the staging area (for example, /tmp
to $TC_TMP_DIR.
-d
rdv_context_download)
Turns on debugging for the Create bookmark (rdv_context_download
rdv_context_download utility.
-verbose
Turns on debugging for this utility.
-tccuser
Specifies the Teamcenter Community user name if it is different than the
user name in the -u argument.
-tccpass
Specifies the Teamcenter Community password if it is different than the
password in the -p argument.
-tccanon
Sets the Teamcenter Community login to anonymous, assuming the destination
permits anonymous access.
-tcccreds
Specifies the Teamcenter Community externally created credential file for
logging in.
-tccdestination
Specifies the URL for Teamcenter Community.
-keep
Do not delete the staging area after uploading the JT assembly files.
-h
Displays help for this utility.
Environment
• CLASSPATH.
The TcCUploaderS.jar file must be present in CLASSPATH
Dependencies
• This utility depends on the TcCUploaderS.jar file. Before using this
utility, you must get this file from the Teamcenter Community kit and place
it in the CLASSPATH on each client host.
• You must have access to the Teamcenter Community environment to run this
utility.
Restrictions
• -z)
Zone searches (-z
-z require an NX-based QPL search index with zones or zone
filters explicitly created in a product structure for appearance caches.
• -c and -n
Context searches (-c -n) require a QPL search index.
The attachments include the following:
o WebDesignContextDefaultSearchDistance
o PortalDesignContextMaxMatchingObjects
o PortalDesignContextMaxMatchingBOLMLines
For more information, see the Preferences and Environment
Variables Reference.
Examples
• The following example uploads the antenna assembly to Teamcenter Community,
overlaying all applicable variants (the RDV search index is not used or
needed). It uses the TC_config_rule_name user preference to determine
the revision rule.
$TC_ROOT/bin/tcc_context_upload -item_id TL109375 -rev_id 004
-title Antenna -stage /tmp -tccuser subrata
-tccdestination http://usamseveh001/mydocs
■ w/pdi)
The revision rule (for example, Beta or less w/pdi
proxy_sync
Synchronizes Teamcenter objects that are linked to remote Teamcenter systems
engineering and requirements management applications, using information stored
in the ExportedProxyLink class to determine which objects must be synchronized.
The utility can query and select a subset of records based on a specified
foreign application, date, and status. You can also determine whether to
synchronize objects that were modified, objects that were deleted, or objects
for which the links (proxies) have been deleted. This utility also provides
records of links from the local application.
In addition, you can use the -diagnostic parameter to test the setup
environment for linking with any type of Teamcenter application.
Syntax
-u=user-id {-p=
proxy_sync [-u= -p=password | -pf=password-file} -g=group]
-obj_uid= obj_uid -app_guide= app_guide -force -sync -report -delete -proxy_report
tcprj|tcreq
-diagnostic -remote_app_guide -remote_app_type tcprj tcreq|tceng
tcreq tceng -h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-obj_uid= obj_uid
Selects records of the Teamcenter objects specified by the object UID.
Note
-app_guid= app_guid
Selects records that were exported to the foreign application identified by
the specified application GUID.
-force
Selects and synchronizes objects regardless of the last modification date.
-sync
Note
-sync, -delete
Either the -sync -delete, or -report operation must be specified when
running this utility.
• tcreq
• tceng
-debug
Prints information to the standard output.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Examples
None.
find_released_datasets
Locates the item revisions and item IDs for the UGMASTER and UGALTREP datasets
released after a certain date and that do not have a DirectModel dataset. The
output is written to a file, which is a user argument for the utility. If this
argument is not provided, output is written to query_output.txt in the current
location. If no release date is provided, the system date is used.
Syntax
-u=user-id {-p=
find_released_datasets [-u= -p=password | -pf=password-file} -g=group]
-released_date= date [-bypass=
-bypass= TRUE | FALSE
FALSE]
-out_file=output-file-name] [include_remote
[-out_file= include_remote]
include_remote [-h-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-released_date
Date on which the UGMASTER/UGALTREP datasets are released to which we are going
to create the tessellated datasets. The format is DD-MMM-YYYY. This argument
is optional. If not specified, system date is used as the released date.
-bypass
Indicates a bypass switch for having bypass privileges. The default value
FALSE.
is FALSE
-out_file
Specifies the file to which output is written. This argument is optional. If
this is not specified, the file is written to the current location.
-include_remote
If the value given is not null, remote objects are included.
-h
Displays help for this utility.
Examples
find_released_datasets -u=infodba -p=infodba -g=dba
-released_date=22-Mar-2005
-out_file=c:\temp\find_released_datasets_test.txt
get_bvr_structure
Retrieves the assembly structure of a BVR of the specified item revision, and
retrieves the child item IDs associated with the assembly structure, then
writes these results to the output file along with the IR.
Syntax
-u=user-id {-p=
get_bvr_structure [-u= -p=password | -pf=password-file} -g=group]
-f=input-file-name | -itemRevisionKeyFile= file-name] [-h
[-f= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-f
Specifies the input file name containing a list of the specified item revisions.
-itemRevisionKeyFile
Specifies the input file name containing the keys of the specified item
revisions. The file format is:
-key = [keyAttr1=keyVal1][keyAttr2=keyVal2]…
-key =[keyAttr1=keyVal1][keyAttr2=keyVal2]…
-key =[keyAttr1=keyVal1][keyAttr2=’keyVal2’]…
This utility creates a log file in the /tmp directory and writes the
error messages to this file. This utility also creates the output file
in the current working directory and writes the NX component names with
the item revision.
Examples
get_bvr_structure -u=infodba -p=infodba -g=dba -f=input_file
list_ir_with_bvr
Lists the item revisions with BVRs in the database to the
list_ir_with_bvr_ xxxxxxxx output file.
Syntax
-u=user-id {-p=
list_ir_with_bvr [-u= -p=password | -pf=password-file} -g=group]
-type=CORP_Part Revision -query=defined-query-name
-create_before= date-time -create_after= date [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-type
Specifies only the item revision type listed in the
list_ir_with_bvr_timeStamp.output file.
-query
Specifies that the specified query is executed. This query must be defined
in the database.
-create_before
Specifies the date to retrieve the list of item revisions created before this
date. The format is dd-mo-yyyy hh:mm.
-create_after
Specifies the date to retrieve the list of item revisions created after this
date. The format is dd-mo-yyyy hh:mm.
-h
Displays help for this utility.
migrate_gmo_to_gcn_events
Migrates all subscription events created in the GM Overlay using CNonIR
project to create the GCN events. Migration is done by modifying attributes
event_type, attribute_names
such as event_type attribute_names, attribute_values
attribute_values, logic_operators
logic_operators, and
math_operators on the ImanSubscription class.
Syntax
-u=user-id {-p=
migrate_gmo_to_gcn_events [-u= -p=password |
-pf=password-file} -g=group]
-list]
[-list
-list
-split=number-of-subscriptions-in-a-file] [-input_file=
-input_file=input-file]
-report=report-file] [-h
[-report= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-list
Outputs all UIDs of instances of the ImanSubscription class in the database.
-split
Limits the number of subscriptions output to each file.
-input_file
Specifies the file containing the UIDs of the subscriptions. Only the valid
GM Overlay subscription events specified in the input file are migrated to
GCN events.
-report
Writes all messages and errors to the file specified by this argument.
-h
Displays help for this utility.
Restrictions
None.
Examples
• To list the UIDs of all the subscriptions in the database in an output
file, enter the following command on a single line:
migrate_gmo_to_gcn_events -user=test-user -p=test-password -g=dba -list
• To migrate all subscriptions in a given input file and write all messages
and errors to a file specified by the report option, enter the following
command on a single line:
migrate_gmo_to_gcn_events -user=test-user -p=test-password -g=dba
-input_file=/tmp/migrate_input.txt -report=/tmp/migrate_report.txt
• To migrate all subscriptions in the database and report all messages and
errors to the default report file using the default user login, enter the
following command on a single line:
migrage_gmo_to_gcn_events
gmo_assoc_items_to_project
Converts special GM logic in the object description field to the project
level security feature, as follows:
1. Queries all projects in the database.
2. For each project, searches the description field of all item revisions in
the database for the following string:
|project-id |
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
gmo_change_itemid_naming_rule
Modifies the item ID naming rule property from a given value to the customer
specified value.
Syntax
-u=user-id {-p=
gmo_change_itemid_naming_rule [-u= -p=password | -pf=password-file}
-g=group] -option= option -prefix= prefix -nr_name= naming-rule
-init_value= initial-value -max_value= maximum-value [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-option
change_naming_rule.
Specifies the option for this utility, that is, change_naming_rule
-prefix
Specifies the prefix of the GM ItemNumeric naming rule.
-nr_name
Specifies the naming rule to change the prefix. You can specify more than
one naming rule separated by commas.
-init_value
Specifies the starting value of the counter.
-max_value
Specifies the maximum value of the counter.
-h
Displays help for this utility.
Restrictions
None.
Examples
• The following example uses the GM ItemRule naming rule to change the prefix:
gmo_change_itemid_naming_rule -u=user -p=password -g=group
-option=change_naming_rule -nr_name="GM ItemRule "
-prefix=GMO -init_value=00000 -max_value=99999
• The following example uses the GM ItemRule and CORP_Tool Rule naming rules
to change the prefix:
gmo_change_itemid_naming_rule -u=user -p=password -g=group
-option=change_naming_rule -nr_name="GM ItemRule,CORP_Tool Rule"
-prefix=GMO -init_value=00000 -max_value=99999
gmo_change_owner
Sets user and group ownership of objects contained in a folder, item, or item
revision. All processing procedures are logged to the log file, if specified.
Syntax
-u=user-id {-p=
gmo_change_owner [-u= -p=password | -pf=password-file} -g=group]
-folder= folder-name -item=item-id -rev=revision-id
-key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]]
[-key=
-r -owner=new-user-id -own_grp= new-group
-r]
[-r
-log=log-file-name -bypass [-h-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-folder
Specifies the folder name. Either folder or item and/or rev should be supplied.
-item
Specifies the item ID.
-rev
Specifies the revision ID.
-key
Specifies the key of the item to be checked. The -key argument can be specified
instead of the -item argument. Use the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
gmo_check_comp_names
Truncates the component names greater than 25 characters in length. This
program locates the components of an assembly with component names greater
that 25 characters long. The component name is the occurrence note of type
NAME.
name UG NAME
Syntax
-u=user-id {-p=
gmo_check_comp_names [-u= -p=password | -pf=password-file} -g=group]
-all | -f=folder-name | -i=item-id
-key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]]
| [-key=
-r=itemrev-id] [-report
[-r= -report | update -out=output-file-name]
update] [-out=
-v]
[-v
-v [-h -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-all
Runs on all the items in database.
-f
Specifies the name of the folder containing list of items to be checked for
component names.
-i
Specifies the item ID to be checked.
-key
Specifies the key of the item to be checked. Use the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
gmo_clone
Serves as a wrapper over the Teamcenter Integration for NX ug_clone utility to
provide Teamcenter Automotive Edition–GM Overlay-specific clone import/export
functionality from a command shell.
Use this utility to import and export NX data in the GM Overlay environment to
ensure the clone conforms with GM Overlay naming conventions.
Syntax
-pim=yes] [-u=
gmo_clone [-pim= -u=user-id {-p=
-p=password | -pf=password-file} -g=group]
-corba_ior_file= ior-file] [-http_url=
[-corba_ior_file= -http_url=4-tier-server-url]
-o=operation] [-fam=
[-o= -fam=lose|strip_status|error] [-asse=
-asse=assembly] [-par=
-par=part]
-dir=directory-name] [-fol=
[-dir= -fol=folder] [-default_checki=
-default_checki= default-check-in]
-default_checko= default-check-out] [-default_a=
[-default_checko= -default_a=default-action]
-default_n=default-naming] [-default_t=
[-default_n= -default_t=default-item-type]
-asso=associated-directory] [-copy_a=
[-asso= -copy_a=copy-associated-files]
-copy_n=copy-non-master-type] [-default_o=
[-copy_n= -default_o=default-owner] [-l=
-l=load-log-file]
-s=save-log-file] [-auto=
[-s= -auto=translate_mode] [-propagate=
-propagate=yes/no]
-export_dfa_kf= dfa_only|dva_in_part] [-export_dfa_list=
[-export_dfa_kf= -export_dfa_list=] -rev_up=]
-export_dfa_list= [-rev_up=
-rev_up=
-attach_log_file=]
[-attach_log_file= -copy_n=copy-non-master-type] [-dr=
-attach_log_file= [-copy_n= -dr=dryrun] [-h=
-h=help]
Arguments
-plm
Set -plm to Yes to initialize Teamcenter Integration for NX only, instead
of native NX.
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges.
If this argument is used without a value, the operating system user name
is used.
Note
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to
be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password
files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-corba_ior_file
Specifies the Teamcenter password server IOR file.
-http_url
Specifies the HTTP URL for four-tier configuration.
-h
Displays help for this utility.
Restrictions
None.
gmo_create_material_form_templates
Creates new material form templates by reading the input from an ASCII text
file. Input must be supplied in a defined format, as specified below. Material
form templates are of the form type Material and are stored in folders or
Template. These folders and forms
subfolders of the folder type Material Template
are stored in the GM Preferred Materials Catalog that is displayed in the
infodba user's Home folder.
Input File
Format
This section describes the input file format using the sample folder structure
shown in the following figure.
Folders are delimited by a colon (::), folders and forms are delimited by a
dollar sign ($$), and the form and form values are delimited by the (##) symbol.
Note
#p_appear#p_fin#p_svc#p_addreq#p_mateng#p_appeng#p_pnteng
Metals:Hard:Corossive$COPPER_001#p_mat#p_pcoat#p_perf#p_pcperf#p_appear
#p_fin#p_svc#p_addreq#p_mateng#p_appeng#p_pnteng
Metals:Soft$BRONZE_001#p_mat#p_pcoat#p_perf#p_pcperf#p_appear
#p_fin#p_svc#p_addreq#p_mateng#p_appeng#p_pnteng
Metals:Soft$SSTEEL_001#p_mat#p_pcoat#p_perf#p_pcperf#p_appear
#p_fin#p_svc#p_addreq#p_mateng#p_appeng#p_pnteng
Colors$BROWNM_001#p_mat#p_pcoat#p_perf#p_pcperf#p_appear
#p_fin#p_svc#p_addreq#p_mateng#p_appeng#p_pnteng
Colors:Metallic$MAROON_001#p_mat#p_pcoat#p_perf#p_pcperf#p_appear
#p_fin#p_svc#p_addreq#p_mateng#p_appeng#p_pnteng
Colors:Metallic$METGREEN_001#metallic#green#high#corrosive#greeenish
#smooth#reqires applying greese#none#user#user#user
Syntax
-u=user-id {-p=
gmo_create_material_form_templates [-u= -p=password |
-pf=password-file}
-g=group]
-infile=full-path-to-input-file] [-h
[-infile= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-infile
Specifies the full path to the input file.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter. In addition, the
gmo_create_material_form_templates.log file is created in the directory from
which the utility is run.
Restrictions
None.
Examples
• To obtain help for this utility, enter the following command on a single
line:
gmo_create_material_form_templates -h
• To read the supplied input file and create folders and forms that are
inserted in the GM Preferred Materials Catalog folder, enter the following
command on a single line:
$GMPDM_ROOT/bin/gmo_create_material_form_templates -u=infodba -p=infodba
-g=dba -infile=/tmp/MATERIAL.txt
gmo_find_changed_install_assem
Locates the installation assemblies that have changed since the specified date
and that are configured with the specified revision rules.
Syntax
-u=user-id {-p=
gmo_find_changed_install_assem [-u= -p=password | -pf=password-file}
-g=group]-time=
-time=date-time -revision_rule= rule1
-revision_rule= rule2 ...-revision_rule=
[-revision_rule= -revision_rule= rulen] -rev_rule_file= file-name
-obj_type=object-name] [-out_file=
[-obj_type= -out_file=output-file-name] [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-time
Specifies the date and time from which the Released CORP_Install item revisions
are to be searched. This should be provided in the Teamcenter-specified format.
An operating system file name can also be given whose last modification time
will be taken as the time.
-revision_rule
Specifies revision rules for which the search is to be done. You can specify
this argument multiple times. If this is given, the rev_rule_file argument
cannot be used.
-rev_rule_file
Specifies a text file listing all the revision rules on separate lines. If
this argument is given, revision_rule option cannot be used.
-obj_type
Specifies the type of object which is to be searched for the change in release
status since the specified date. This argument is optional and defaults to
Revision.
objects of type CORP_Install Revision
-out_file
Specifies file to which output is written. This argument is optional. If it is
stdout.
not specified, the output is sent to stdout
-h
Displays help for this utility.
Examples
None.
gmo_get_partspec
Retrieves the part specification of the specified dataset.
Syntax
gmo_get_partspec
-dataset_tag= dataset [-h
-h]
-h
Arguments
-dataset_tag
Specifies the dataset tag in a string.
-h
Displays help for this utility.
Examples
None.
gmo_get_pds_info
Retrieves the pds attributes for the given part numbers. The output files
are generated at the location specified by %TC_TMP_DIR % with the names
parts_fnd.txt.
sitename_timestamp_ parts_notfnd.txt and sitename_timestamp_ parts_fnd.txt
Syntax
-u=user-id {-p=
gmo_get_pds_info [-u= -p=password | -pf=password-file} -g=group]
-input_file=input-file-name | -itemKeyFile= file-name] [-h
[-input_file= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-input_file
Specifies the input file with part numbers and revision IDs separated by the
~ (tilde) character.
-itemKeyFile
Specifies the input file name containing the keys of the desired part numbers.
The file format is:
-key = [keyAttr1=keyVal1][keyAttr2=keyVal2]…
-key =[keyAttr1=keyVal1][keyAttr2=keyVal2]…
-key =[keyAttr1=keyVal1][keyAttr2=’keyVal2’]…
-h
Displays help for this utility.
gmo_install_usage_queries
Installs usage queries.
Syntax
-u=user-id {-p=
gmo_install_usage_queries [-u= -p=password |
-pf=password-file} -g=group]
-recreate]
[-recreate
-recreate [-h-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-recreate
Optional parameter. If specified, currently installed usage queries are
deleted prior to installation of corresponding GMO-specific usage queries. As
default, usage queries are normally installed. Siemens PLM Software recommends
you use this parameter to avoid installation error messages when attempting
to install over existing queries. This utility can be executed repeatedly
using this option.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
gmo_ipvbom_import
Imports build intent data from a PLM XML file and creates a change object of
Intent.
type GM Build Intent
Syntax
-u=user-id {-p=
gmo_ipvbom_import [-u= -p=password | -pf=password-file} -g=group]
-xml_file= full-path-to-PLM XML-file [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-xml_file
Specifies the path to the PLM XML input file containing the build intents.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
This utility must be used only to import build intent data. It is not intended
to import other data contained in PLM XML files.
Examples
• To obtain help for this utility, enter the following command on a single
line:
gmo_ipvbom_import -h
gmo_ipvbom_export
Exports specific build intent information, all build intent information,
specific build intents along with partial build intents, full BOM or
incremental BOM data.
Syntax
-u=user-id {-p=
gmo_ipvbom_export [-u= -p=password | -pf=password-file} -g=group]
-build_id=build-intent-id-number] [-fullbom=
[-build_id= -fullbom=yes | no]
-inputfile=full-path-to-inputfile] -xml_path= full-path-to-PLM XML-file [-h
[-inputfile= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-build_id
Specifies the ID number of the build intent to be exported.
-fullbom
no.
Specifies whether or not to export the full BOM. Valid values are yes or no
yes, the utility exports the full BOM; otherwise, the delta BOM is exported.
If yes
yes.
The default value is yes
-inputfile
Full path to file.
-xml_path
Specifies the path to the output directory containing the XML file. If not
specified, the path defined in the preference file is used.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
In addition, the IPVBOM_build_intent_status preference, which specifies the
release status used to obsolete older revisions of the build intent changes,
must be set.
Files
As specified in Log files produced by Teamcenter. In addition, the
values of the IPVBOM_compare_mode_var_level_RevisionCompare_ItemTypes and
IPVBOM_compare_mode_var_level_Occurrence_Notes preferences affect the behavior
of the gmiman_export utility. For more information about these preferences,
see the Preferences and Environment Variables Reference.
Restrictions
This utility must be used only to export build intent data. It is not intended
to export other data to PLM XML files.
Examples
• To obtain help for this utility, enter the following command on a single
line:
gmo_ipvbom_export -h
• To export build BOMs listed in the /tmp/EXPORTS.txt file from the Teamcenter
database to a PLM XML file, enter the following command on a single line:
gmo_ipvbom_export -u=infodba -p=infodba -g=dba -fullbom=yes
-xml_path=/tmp -inputfile=/tmp/EXPORT.txt
gmo_ipvbom_pulldate
Updates the pull date information for each build intent that is defined in
a PLM XML file.
Syntax
-u=user-id {-p=
gmo_ipvbom_pulldate [-u= -p=password | -pf=password-file} -g=group]
-xml_file=absolute-path-of-xml-file] [-h
[-xml_file= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-xml_file
Specifies the full path of the PLM XML file.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To obtain help for this utility, enter the following command on a single
line:
gmo_ipvbom_pulldate -h
gmo_migrate_ulink_to_rdvauto
Migrates ULink occurrences in a VAS to GRDVA occurrences.
Syntax
-u=user-id {-p=
gmo_migrate_ulink_to_rdvauto [-u= -p=password | -pf=password-file}
-g=group]
-product=product-item-id| -key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…
[-product=
[,keyAttrN=keyValN]]
-rev=product-revision-id -ia_list=IA-item-id-file
-process_path=y | -process_all=y | -process_rules=y
-logfile= logfile-name [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-product
Specifies VAS item ID.
-key
Specifies the key of the VAS item. Use the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
gmo_migrate_usage_nves
Migrates existing architecture breakdowns to the newer, simplified format of
named variant expression (NVE) comprising usage, year, and production usage.
You should only run this utility if you created NVEs in Teamcenter 2007.1 MP6
or earlier by running the rdv_import_usage utility. If you created NVEs in
later releases, it is not necessary to run this utility. Otherwise, you should
run this migration utility only once on each architecture breakdown.
The utility outputs the usage NVEs in the architecture breakdown and the
assembly structure in the new format of NVEs. It also generates a list of the
older format NVEs that are replaced and you can use this list to identify
unused NVEs for deletion.
For example, it takes an older format NVE coded as D9_2009-09_AA5M_1PD69_PS and
generate the following NVE code strings:
D9_AA5M_1PD69_000
Year_2009-09
ProductionUsage
Syntax
-u=user-id {-p=
gmo_migrate_usage_nves [-u= -p=password | -pf=password-file} -g=group]
-revision_rule= rev-rule-string -mode=migration-mode
-top_level_AB_id= vehicle-architecture-id | -louholder_item_id= item-id
-archId_list_file= file-name
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-revision_rule
Specifies a valid revision rule string to configure the structure window.
-mode
Specifies the running mode of the utility, either report to generate a report
of NVEs to migrate or migrate to initiate migration of affected NVEs.
-top_level_AB_id
Specifies the item ID of a top level architecture. All LOUs under LOU holders
in the specified architecture are processed. If you specify this argument, do
not specify a -louholder_item_id argument.
-louholder_item_id
Specifies the item ID of a LOU holder. If you specify this argument, do not
specify a -top_level_AB_id argument.
-archId_list_file
Specifies a flat file containing architecture IDs. The utility uses these
architecture IDs to retrieve the NVEs of affected LOUs.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Restrictions
None.
Files
As specified in Log files produced by Teamcenter.
Examples
To migrate all the NVEs for the Model_2009_AB architecture breakdown, enter
the following command on a single line:
gmo_migrate_usage_nves -u=user-name -p=password -g=group -revision_rule=production
-mode=migrate -top_level_AB_id=Model_2009_AB -archId_list_file=AB.txt
gmo_set_rel_status
Sets the release status for the item revisions and related datasets, revision
masters, and BOMview revisions with the specified statuses. It searches for
the specified folder in home folder of the user infodba and find all the
items and item revisions in that folder. The utility then sets the specified
product-release-status for all the non-PDE
PDE item revisions, datasets, BOMview
revisions, revision master forms and the specified pdi-release-status for
all the PDI item revisions, datasets, BOMview revisions, and revision master
forms. It sets the given release status only if no release status is set
before for item revision, dataset, bomview revision, and revision master form.
Syntax
-u=user-id {-p=
gmo_set_rel_status [-u= -p=password | -pf=password-file} -g=group]
folder_name prod_rel_status pdi_rel_status
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-h
Displays help for this utility.
Restrictions
The folder_name must be present in the home folder of the infodba user.
Examples
None.
gmo_split_usage
Divides GM Corporate Dictionary (Architecture Breakdown Structure) and Line Of
Usage Data (GPDS XML files) into predefined blocks of data (GPDS XML files).
For each block of data, this utility creates script/batch file that is run to
upload the Corporate Dictionary/Usage Data.
Syntax
-u=user-id {-p=
gmo_split_usage [-u= -p=password | -pf=password-file} -g=group]
-input=input-file {[-log=
-log=name-of-logfile -max=maximum-usage |
-enable_lock_grabbing]
[-enable_lock_grabbing
-enable_lock_grabbing -arch=y
-archtop_item_id= arch-top-item-id | -archtop_item_name= arch-item-name}]}
{-archtop_item_id=
-import_usage_log= logfile-name -generate_delta_xml [
-enable_lock_grabbing] [-h
-enable_lock_grabbing -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-input
Specifies the name of the input file.
-log
Specifies the name of the log file.
-max
Specifies the maximum usage.
-arch
Boolean flag to upload Corporate Dictionary.
-archtop_item_id
Specifies item ID of the Architecture Breakdown.
-archtop_item_name
Specifies the name of the architecture top item.
-import_usage_log
Specifies for each block of data, a separate logfile is generated with
increments indicating each data block.
-generate_delta_xml
Specifies the utility is to generate the Delta XML file.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
gmo_update_vas_data
Connects to the GPDS system and updates the VAS registration.
Syntax
-u=user-id {-p=
gmo_update_vas_data [-u= -p=password | -pf=password-file} -g=group]
-datasource=external-datasource-name [-hostname=
-hostname=external-datasource-hostname]
-user=external-proxy-user] [-passwd=
[-user= -passwd=external-proxy-password] [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-datasource
Specifies the name of the external datasource.
-hostname
Specifies the hostname of the external datasource.
-user
Specifies the user of the external datasource.
-passwd
Specifies the password of the external datasource.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
gmo_upgrade_dlist_objects
Migrates the distribution list objects created as a dataset using the
TcAEV8.1/V9.1 functionality. It also searches for all distribution list objects
existing in the database and transforms them into EPMAssignmentList objects.
Description
Syntax
-u=user-id {-p=
gmo_upgrade_dlist_objects [-u= -p=password |
-pf=password-file} -g=group]
-delete_old]
[-delete_old
-delete_old [-h-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-delete_old
Indicates that the utility is to delete the old assignment list objects after
they are upgraded.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
gmo_validate_xml
Validates the GPDS generated XML file. It ensures that all of the model option
statements and model designators contain the correct VDS records and the
corporate dictionary is correctly defined.
Syntax
-u=user-id {-p=
gmo_validate_xml [-u= -p=password | -pf=password-file} -g=group]
-input=input-xml-file-name [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-input
Specifies the name of the XML file.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
gmo_vds_util
Synchronizes the variant data stored with the item revision between the base
and multiple target item revisions.
Syntax
-u=user-id {-p=
gmo_vds_util [-u= -p=password | -pf=password-file} -g=group]
-i=item-id
[-i=
| -key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]]
-b=base-item-rev [-t=
-t=target-item-rev1 ... ] [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-i
Specifies the item ID.
-key
Specifies the key of the item. Use the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
rdv_import_usage
Imports usages from an XML file to Teamcenter usage representations. The
utility applies all model NVEs available during the pre-usage stage to the
top-level architecture node. The model NVEs are not applied to the children of
the top-level architecture node (the architecture breakdown elements). However,
the stored model NVEs on the top-level architecture element are available for
manual application to any children in the architecture breakdown. When working
in the Replace Design in Product wizard in DesignContext or Structure Manager,
the user can select the model NVEs from the top-level architecture breakdown,
rather than from the preselected architecture breakdown element (ABE).
Unlike in earlier versions of Teamcenter, model NVEs are not associated with
the ABEs under the top-level architecture breakdown. Rather, model NVEs are
stored as absolute occurrence data on the top-level architecture node. The
utility creates the necessary absolute occurrence data at the top-level during
the pre-usage import step.
Platform Designer allows the user to view model and manual NVEs associated with
the top-level. You can use the Add command to add associated manual NVEs from
the variant expression block at the top level to the absolute occurrence data.
Optionally, you can configure the utility to retry if it fails to complete a
usage load for any reason on the first attempt. Failure to complete the load
impacts downstream processes, as users cannot align their CAD solutions to
the most recent PLM system changes. The utility retries obtaining a lock on
the objects needing modification, typically, the product revision or top-level
architecture node. Once a lock is obtained, the utility completes usage load
operations. The optional ability for the utility to obtain the necessary locks
is set with the RDV_enable_product_lock preference.
Caution
Data loss may occur if the utility removes the lock while a user is
actively editing data associated with the top-level product.
In the event of a failure while importing LOUs, it reports error codes and
descriptions in the system log. These reports can be interpreted by users or
scripts to take the necessary corrective action.
Note
The format of the NVEs created by this utility changed with effect from
Teamcenter 2007.1 MP6. Newer versions of the utility automatically
include options and values so that you can use those options for the
manual creation of NVEs and saved variant rules (SVRs) in Platform
Designer. While running the utility, Teamcenter checks to see if the
item ID of the product item is present in the PSM_global_option_item_ids
preference. If so, it automatically creates the variability on the
top level architecture breakdown. The import utility then applies
variability for every option-value on the architecture breakdown (VAB).
During execution of the rdv_import_usage utility, Teamcenter does not
enforce hierarchical variability on the architecture breakdown (VAB).
Syntax
-u=user-id {-p=
rdv_import_usage [-u= -p=password | -pf=password-file} -g=group]
-input_file= name-of-xml-file -h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-input_file
Specifies the XML input file from which the utility imports usages.
-h
Displays help for this utility.
Environment
• As specified in Manually configuring your environment for Teamcenter
utilities.
Restrictions
None.
Files
As specified in Log files produced by Teamcenter.
Examples
To import usages, enter the following command on a single line:
rdv_import_usage -u=user-name -p=password -g=group -input_file=pdis101.x
The utility uses the RDV_IMPORT_USAGE_TM transfer mode to convert the XML file
to PLM XML format, via a style sheet.
default_adsfoundation_queries
Installs the saved queries in the ADS Foundation template with names and
descriptions either in the locale specified for the system or in all supported
locales. The following queries are installed by this utility:
• Find ADSTechDocument
• Find ADSDrawing
• Find ADSPart
• Find ADSDesign
Note
This utility runs automatically when the Aerospace and Defense solution
is installed or upgraded.
Syntax
-u=user-id {-p=
default_adsfoundation_queries [-u= -p=password | -pf=password-file}
-g=group]-locales=
-locales=locale-code | ALL [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-locales
ALL, for which translated query
Specifies the locale, using locale codes or ALL
names and descriptions are installed. You can specify a single locale, or
you can specify multiple locales in a comma-separated list, for example,
en_US,de_DE,fr_FR. Using the ALL value installs all locales supported by your
en_US,de_DE,fr_FR
Teamcenter system.
For a list of locale codes, see the Localization Guide.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To install the ADS Foundation saved queries with names and descriptions
in all locales supported for the system, enter the following command on a
single line:
default_adsfoundation_queries -u=infodba -p=password -g=dba -locales=ALL
• To install the ADS Foundation saved queries with names and descriptions in
English, German, and Czech, enter the following command on a single line:
default_adsfoundation_queries -u=infodba -p=password -g=dba
-locales=en_US,de_DE,cs_CZ
default_adschangemanagement_queries
Installs the ADS Change Management saved queries with names and descriptions
in either the locale specified for the system or in all supported locales. The
following queries are installed by this utility:
• Find All Change Notice Revisions
Note
This utility runs automatically when the Aerospace and Defense Change
Management solution is installed or upgraded.
Syntax
-u=user-id {-p=
default_adschangemanagement_queries [-u= -p=password |
-pf=password-file} -g=group]
-locales= locale-code | ALL [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-locales
ALL, for which translated query
Specifies the locale, using locale codes or ALL
names and descriptions are installed. You can specify a single locale or
you can specify multiple locales in a comma-separated list, for example
en_US,de_DE,fr_FR. Using the ALL value installs all locales supported by your
en_US,de_DE,fr_FR
Teamcenter system.
For a list of locale codes, see the Localization Guide.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To install the ADS Change Management saved queries with names and
descriptions in all locales supported for the system, enter the following
command on a single line:
default_adschangemenagement_queries -u=infodba -p=password
-g=dba -locales=ALL
• To install the ADS Change Management saved queries with names and
descriptions in English, German, and Czech, enter the following command
on a single line:
default_adschangemanagement_queries -u=infodba -p=password -g=dba
-locales=en_US,de_DE,cs_CZ
update_locationcode_from_owningorg
Updates the Original Location Code of items and Current Location Code of
item revisions based on the Organization ID of the organization associated
with the item or item revision.
This utility also creates a relation between groups and company locations based
on the defined organization structure.
Syntax
-u=user-id {-p=
update_locationcode_from_owningorg [-u= -p=password |
-pf=password-file}
-g=group] [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To update the Original Location Code of all items and Current Location Code
of all item revisions based on the Organization ID attribute, and create
relations between groups and company locations:
update_locationcode_from_owningorg -u=infodba -p=password -g=dba
material_export
Exports the material and associated substances information in MatML format.
Syntax
material_export
-u=user-id
[-u=
-p=password | -pf=password-file}
{-p=
-g=group]
[-g=
-f=output-xml-file]
[-f=
-item=item-id]
[-item=
-rev=item–revision-id]
[-rev=
-optionset=name]
[-optionset=
-transfermode= name]
[-transfermode=
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-file
Specifies the MatML file that contains the information about the material
objects that are exported.
-item
Specifies the item ID. This argument is mutually exclusive with the -item_key
argument.
-item_key
Specifies the a string identifier containing attributes that identify the item
object to export. This argument is mutually exclusive with the -item argument.
-rev
Specifies the item revision ID of the item that must be exported.
-optionset
Specifies the option set name of the transfer option set that must be used
for this export.
-transfermode
Specifies the transfer mode name that is to be used during export.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
material_export —file=steel.xml —item=000016 —rev=A —xsl=tcxml_to_matml.xls
optionset=TIEConfiguredExportDefault
material_import
Imports MatML file containing the materials and substances information into
Teamcenter.
Syntax
material_import
-u=user-id
[-u=
-p=password | -pf=password-file}
{-p=
-g=group]
[-g=
-file=input-xml-file]
[-file=
-dir=input-dir-path]
[-dir=
-optionset=name]
[-optionset=
-transfermode= name]
[-transfermode=
-errorcontinue= yes/no]
[-errorcontinue=
-xls=xls-file]
[-xls=
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-file
Specifies the MatML file that contains the information about the material
objects that must be imported.
-dir
Specifies the directory path of the MatML file.
-optionset
Specifies the name of the transfer option set that must be used for this import.
-transfermode
Specifies the transfer mode name that is to be used during import.
-errorcontinue
Specifies the option to control continuation of import when an error is
encountered. The default value is no.
-xls
Specifies the XLS file that needs to be applied on input material file before
the import is performed. If not provided, the default XLS file is located at
TC_DATA is used.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
material_import —dir=d:\matML —xls=mattotcxml.xls material_import
—file=mat1.xml —optionset=MaterialImportDefaultoptionSet
—optionset=MaterialImportDefaultoptionSet
material_import –file=mat1.xml —dir=d:\matML –site=100001
–optionset=MaterialImportDefaultOptionSet
subscmpl_import_template
Imports the default user templates to work with Microsoft Office components
that are required in Substance Compliance.
Syntax
material_import
-u=user-id
[-u=
-p=password | -pf=password-file}
{-p=
-g=group]
[-g=
-f=path of the folder]
[-f=
-i=path of the template file]
[-i=
-t=type of template being imported]
[-t=
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-f
Specifies the path of the folder from which templates are imported.
-i
Specifies the path of the template file to be imported.
-t
Specifies the type of the template being imported using -I or -f option,
ExcelTemplate.
for example, ExcelTemplate
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
subscmpl_msd_import
Imports the material substance declaration data available in the IPC 1752 XML
files into Teamcenter.
Syntax
subscmpl_msd_import
-u=user-ID
-p=password | -pf=password-file}
{-p=
-g=group]
[-g=
-file=input-xml-file | -dir=directory_path}
{-file=
-optionset=TransferOptionSet_name]
[-optionset=
-transfermode= TransferMode_name]
[-transfermode=
-xsl=XML_style_sheet_xsl_file]
[-xsl=
-h]
[-h
-h
Arguments
-u
Specifies the user ID. The user must have administrative privileges.
If this argument is used without a value, the operating system user name
is used.
Note
-p
Specifies the user's password.
If used without a value, the system assumes a null value. If this argument is
not used, the system assumes the user-ID value to be the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
-file
Specifies the material substance declaration data in XML file to be related to
the vendor part.
Note
-dir
Specifies the directory containing material substance declaration data in
the XML file to be related to the vendor parts. The system searches for the
matching XML file name as specified by the SUBSCMPL_msd_file_naming_prefix
preference. The unique_file_name.xml file is the input XML file containing
material substance declaration data. The unique_file_name.zip file contains
supporting documents for the same vendor part.
Note
-optionset
Specifies the name of the transfer option set to be used for the Teamcenter
XML import.
Note
-transfermode
Specifies the name of the transfer mode to be used for the Teamcenter XML
import.
Note
-xsl
XML style sheet file to be applied to the input material substance declaration
XML file before the Teamcenter XML import.
Note
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
To import material substance declaration data, enter one of the following
commands on a single line:
subscmpl_msd_import
-u=user
-p=password
-g=group
-file=D:\IPC_Data\IPC_1.xml
subscmpl_msd_import
-u=user
-p=password
-g=group
-dir=/data/IPC_Data
subscmpl_msd_import
-u=user
-p=password
-g=group
-dir=/data/IPC_Data
-xsl=/data/Stylesheet/IPC_new.xsl
subscmpl_msd_import
-u=user
-p=password
-g=group
-dir=/data/IPC_Data
-xsl=/data/Stylesheet/IPC_new.xsl
-optionset=TIEImportOptionSetDefault
subscmpl_msd_import
-u=user
-p=password
-g=group
-dir=/data/IPC_Data
-xsl=/data/Stylesheet/IPC_new.xsl
-optionset=TIEImportOptionSetDefault
-transfermode=TIEImportDefault
subscmpl_validate_compliance_results
Validates the compliance results in Teamcenter based on the expiry dates.
Syntax
material_import
-u=user-id
[-u=
-p=password | -pf=password-file}
{-p=
-g=group]
[-g=
-locales=language codes]
[-locales=
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-locales
Specifies the language codes separated by a comma.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
Translations for query name and descriptions will be added for the specified
languages. User can specify single or multiple language codes separated with
comma (,). Specifying ALL will add translations in all supported languages.
[-locales=language codes/ALL]
add_specmgr_templates
Installs Specification Manager templates in Teamcenter. These templates
are used to view information about a specification and its section in the
Specification Manager application in the rich client.
The following templates are installed by this utility:
• SPECMGR_default_spec_template
• SPECMGR_default_object_template
• SPECMGR_default_CPSpecSection_object_template
• SPECMGR_default_CPFreeText_object_template
• SPECMGR_default_CPRefText_object_template
• SPECMGR_default_CPPropertyList_object_template
• SPECMGR_default_CPComponentList_object_template
• SPECMGR_default_CPBOM_object_template
• SPECMGR_default_CPRefSpec_object_template
• SPECMGR_default_CPProcLine_object_template
• SPECMGR_default_CPRefObject_object_template
• SPECMGR_default_CPProcStage_object_template
Note
Syntax
-u=user-id {-p=
add_specmgr_templates [-u= -p=password | -pf=password-file} -g=group]
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To install Specification Manager templates:
add_specmgr_templates -u=infodba -p=password -g=dba
cae_migrate_atl_preferences
Migrates legacy tool configuration settings to a new configuration managed
by the Teamcenter vaulted dataset.
Syntax
cae_migrate_atl_preferences
-u=user-id
[-u=
-p=password
{-p=
-pf=password-file}
-g=group]
-file=file-name (including file path)]
[-file=
-overwrite]
[-overwrite
-overwrite
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-file
Specifies the path and file name of the tool preferences file containing tool
preferences data to be migrated/appended to dataset-managed preferences.
If you do not specify this option, the utility looks for authoring tool launch
preferences (used in Teamcenter 2007.1.x) in the database and simulation tool
configuration (used in Teamcenter 8.0.x) in the espf_configuration.xml file
in the TC_DATA folder and migrates them (if they are available) to a new
configuration managed by the Teamcenter vaulted dataset.
Note
You must specify the file name and the complete file path for the -file
option.
-overwrite
Overwrites the existing tool preferences with legacy tool preferences.
If you do not specify this option, the utility appends legacy tool preferences
to the existing tool preferences.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• Migrate the Teamcenter 2007.1.x preferences to the Teamcenter 8.1
configuration file in a dataset.
Note
cae_migrate_atl_preferences
-u=infodba
-p=*******
-g=dba
CAE_pre_processor_*,
The system reads the configuration definitions from the CAE_pre_processor_*
CAE_solver_*, and CAE_post_processor_* preferences and creates an
CAE_solver_*
appropriate espf_configuration.xml file. The system creates
a new CAESolution dataset named according to the value in
CAE_simulation_tool_config_dsname , and imports the file as an XML-File
reference.
Note
cae_migrate_atl_preferences
-u=simadmin
-p=*******
-g=Simulation-Administration
cae_migrate_atl_preferences
-u=simadmin
-p=*******
-g=Simulation-Administration
-file=D:\MyFiles\espf_configuration.xml
-overwrite
cae_save_result_data
Saves the output of an analysis run (results) to Teamcenter when called by an
analysis application.
Syntax
cae_save_result_data
-u=user-id
[-u=
-p=password
{-p=
-pf=password-file}
-g=group]
-name=result-name
-type=type-name]
[-type=
-desc=result-description]
[-desc=
-item=item-id] | [-key=
{[-item= -key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]]}
-rev=revision-id
-xml_file= xml-file-name
-result_dir= result-directory
-external=true|false]
[-external=
-overwrite=true|false]
[-overwrite=
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-name
Specifies the name of the result object to be created in Teamcenter. This
argument is required, and the name must be no longer than 32 characters in
length. In addition, there must be no other result inside the results dataset
that resides in the specified item revision with the same name.
-type
Specifies the value used for the type attribute of the new result in
Teamcenter. This argument is optional, and if supplied it must be no longer
than 32 characters long.
-desc
Specifies the value to be used for the description attribute of the new
result in Teamcenter. This argument is optional, and if supplied it must be
no longer than 240 characters long.
-item
Specifies the item ID of the item which contains the item revision containing
the results dataset in which the result is created. This argument is mutually
exclusive with the -key argument; one of these two arguments must be specified.
-key
Specifies the key of the item which contains the item revision containing the
results dataset in which the result is created. This argument is mutually
exclusive with the -item argument; one of these two arguments must be
specified. Use the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
-overwrite
Indicates whether a pre-existing result with the same name should be
overwritten. Valid values for this argument are true and false and are not
case sensitive. This argument is optional. If no value is given, the default
false. If the value of this argument is false and a result with the
value is false
input name already exists, the system returns an error.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
• This utility must be called only from an integrated CAE analysis
application.
• The type of the specified item must be the type defined as the CAE default
analysis item type.
Examples
• To save a new result named Result1 into a results dataset under item
000001, revision A, enter the following command on a single line:
000001
cae_save_result_data
-name=Result1
-type=Analysis
-desc=Test first run
-item=000001
-rev=A
-xml_file=c:\temp\test.xml
-result_dir=c:\temp\result1
• To overwrite the existing result from the previous example with a new
result of the same name, this time with externally stored files, enter the
following command on a single line:
cae_save_result_data
-name=Result1
-type=Analysis
-desc=Overwrite first run
-item=000001
-rev=A
-xml_file=c:\temp\test2.xml
-result_dir=c:\temp\result2
-external=true
-overwrite=true
epm_import_batch_meshing_results
Imports batch meshing results into the Teamcenter database.
Syntax
epm_import_batch_meshing_results
-u=user-id
[-u=
-p=password
{-p=
-pf=password-file}
-g=group]
-workdir= working-directory
-itemid=item-id] | [-key=
{[-itemid= -key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]]}
-revid=revision-id
-dsname= dataset-name
-nrname= named-reference-name
-size=mesh-size
-ext=extension
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-workdir
Specifies the full operating system path of the working directory into which
all batch meshing results for a single job will be written.
After meshing completes, the batch meshing interface examines this directory
to determine which mesh results files are imported in to the Teamcenter
database. This argument is mandatory.
-itemid
Identifies the item under which the file will be imported.
The utility imports the file indicated by the -file argument value in to the
-itemid, -revid
CAEMesh dataset at the location specified by the -itemid -revid, and -dsname
arguments. This argument is mutually exclusive with the -key argument; one of
the two arguments must be specified.
-key
Uses the key to identify the item under which the file will be imported.
The utility imports the file indicated by the -file argument value in to the
-key, -revid
CAEMesh dataset at the location specified by the -key -revid, and -dsname
arguments. This argument is mutually exclusive with the -itemid argument; one
of the two arguments must be specified. Use the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
-ext
Specifies the file name extension to apply to the named reference in the
CAEMesh dataset.
The batch meshing interface uses this file name extension to find the batch
meshing results files to import in to the resulting CAEMesh dataset in the
Teamcenter database. This argument and value are mandatory.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
This utility is intended to be called only from the batch meshing interface
from within Teamcenter.
Examples
To import the some_mesh.bdf file in to a CAEMesh dataset with the name
Some_part, under item 000001
Some_part 000001, revision A, enter the following command on a
single line:
epm_import_batch_meshing_results
-workdir=c:\temp\batch_meshing_dir
-itemid=000001
-revid=A
-dsname=Some_part
-nrname=some_mesh
-size=10
-ext=dbf
epm_notify_batch_meshing_results
Notifies the user of the results of a batch meshing job.
Syntax
epm_notify_batch_meshing_results
-u=user-id
[-u=
-p=password
{-p=
-pf=password-file}
-g=group]
-workdir= working-directory
-logfile= log-file-name
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-workdir
Specifies the full operating system path to the working directory in which
all batch meshing results for a single job reside.
cae_execute_datamap
Applies data mapping rules to an input structure by providing the root item
revision of the input structure and the configuration information of the
structure along with the domain for the data mapping rules.
When a snapshot is produced, the Snapshot folder, rather than the root item of
the resulting structure, is pasted on the invoking user’s Newstuff folder.
Syntax
cae_execute_datamap
-u=cae_analyst
[-u=
-p=password
{-p=
-pf=password-file}
-g=CAE_designer]
-inputItemKey= key-to-the-root-item-of-the-input-structure
-revID=revision-ID-of-the-input-item-revision
-snapshotOutput= snapshot-folder
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
Example 2:
cae_execute_datamap
-u=cae_analyst
-g=CAE_designer
-inputItemKey=000001 (key-to-the-root-item-of-the-input-structure)
-revID=A (revision-ID-of-the-input-item-revision)
cae_execute_structuremap
Applies structure map rules to an input structure by providing the root item
revision of the input structure and the structure map item revision containing
the rule along with the configuration information of the structure.
When a snapshot is produced, the Snapshot folder, rather than the root item of
the resulting structure, is pasted on the invoking user’s Newstuff folder.
Syntax
cae_execute_structuremap
-u=user-id
[-u=
-p=password
{-p=
-pf=password-file}
-g=group]
-inputItemKey= key-of-the-root-item
-revID= revision-ID-of-the-input-item-revision
-SMItemKey= structure-map-item-key
-SMRev= structure-map-item-revision-ID
-snapshotOutput= snapshot-folder
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-inputItemKey
000001.
Specifies the key of the root item of the input structure; for example, 000001
-revID
Specifies the revision ID of the input item revision.
-SMItemKey
000002.
Specifies the structure map item key; for example, 000002
-SMRev
Specifies the structure map item revision ID.
-snapshotOutput
Specifies the output snapshot name of the output model item revision.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
To execute structure map rules on a input structure, enter the following
command on a single line:
Example 1:
cae_execute_structuremap
-u=cae_analyst
-g=CAE_designer
-inputItemKey=000001 (key-to-the-root-item-of-the-input-structure)
-revID=A (revision-ID-of-the-input-item-revision)
-SMItemKey=000002 (structure-map-item-key)
-SMRev=B (structure-map-item-revision-ID)
-snapshotOutput=snapshot-folder
Example 2:
cae_execute_structuremap
-u=cae_analyst
-g=CAE_designer
-inputItemKey=000001 (key-to-the-root-item-of-the-input-structure)
-revID=A (revision-ID-of-the-input-item-revision)
-SMItemKey=000002 (structure-map-item-key)
-SMRev=B (structure-map-item-revision-ID)
cae_migrate_datamap_definition
Migrates the data mapping definition files from the TC_DATA directory in
the existing installation to a dataset attached to an item revision in the
database. The data map definition files consist of the data mapping XML
file—named according to the CAE_dataMapping_file preference—and an optional
NodeXMLConfig.xml configuration file.
This utility checks the value of the CAE_datamap_files_location preference.
• If the preference is set, the utility imports the files located in the
TC_DATA directory to a CAEStructureMap dataset attached to the item
revision indicated by the preference and creates a dataset, if needed. The
files are not removed from the TC_DATA directory.
• If the preference is set, and the indicated item revision already has an
attached CAEStructureMap dataset with a valid XML reference, the utility
does not do anything, that is, it does not overwrite any existing data map
definition files in the database.
• If the preference is not set, the utility creates an ItemRevision type and
assigns ownership according to the -ou and -og arguments supplied to the
utility, and sets the preference value to the created item revision.
Syntax
cae_migrate_datamap_definition
-u=user-id
[-u=
-p=password
{-p=
-pf=password-file}
-g=group]
-ou=owning-user-id
-og=owning-group-name
-itemtype= item-type-preference
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-ou
(Optional) Specifies the owning user ID.
This user owns all created objects.
-og
(Optional) Specifies the group associated with the owning user.
Note
If you specify the -ou argument and do not specify the -og argument,
the user’s default group is used.
-itemtype
Specifies the type of Item you want to populate in the database for holding
the data mapping configuration files. If used without a value, the item is
Item.
created with the default item type, that is, Item
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
To migrate the data mapping definition files from the operating system to a
dataset, enter the following command in a single line:
cae_migrate_datamap_definition
-u=infodba
-p=infodba
-g=dba
-ou=cae_admin
-og=simulation-administrator
cae_validate_structuremap
Validates the StructureMap item revision to ensure that the configured
structure map rules are properly validated before they are executed.
Syntax
cae_validate_structuremap
-u=infodba
[-u=
-p=infodba
{-p=
-pf=password-file}
-g=dba]
-ou=cae_admin
-og=simulation_administrator
-or=simulation_administrator
-SMItemKeyList= item-id=0001;item-id=0002;item-id=0003
-SMRevList =A;A;C
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-ou
(Optional) Specifies the owning user ID.
This user owns all created objects.
-og
(Optional) Specifies the group associated with the owning user.
Note
If you specify the -ou argument and do not specify the -og argument,
the user’s default group is used.
-or
(Optional) Specifies the role associated with the owning user.
-SMItemKeyList
Specifies the list of structure map items key. At least one SMItemKey is
required, for example, -SMItemKey= item-id=value.
When using multiple item keys, use a semicolon separated string, for example,
SMItemKeyList= item1key;item2key;item3key.
-SMRevList
Specifies the list of structure map item revision IDs for corresponding item
keys.
Note
This list must have the same number of entries as the SMItemKeyList list.
When using multiple item keys, use a semicolon separated string, for example,
SMRevList= item1-revision-id;item2-revision2-id;item3-revision-id.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
To validate the structure map, enter the following command in a single line:
cae_validate_structuremap
-u=CAE_analyst
-p=*****
-g=CAE_designer
-ou=cae_admin
-og=simulation_administrator
-or=simulation_administrator
SMItemKeyList=item-id=0001;item-id=0002;item-id=0003
-SMRevList=A;A;C
cae_execute_cae_accountability_check
Compares the attributes of a product and model structure using the
accountability check framework along with data mapping rules. The attributes
are compared by applying data mapping rules. The attributes marked as
mapped in the NodeXMLConfig.xml file used by data mapping is considered for
comparison. Data mapping rules are applied on the input product structure,
and the data mapped values are compared with the model attribute value. The
product and model item keys and the revision IDs are required along with the
data mapping domain as input. You can optionally specify the configuration
information for the product and the model. The result of the comparison is
created as a named reference containing a dataset (Microsoft Excel file) with
the name you specify in the -comparison_dataset_name argument. The result is
attached to the root of the model structure.
Syntax
cae_execute_cae_accountability_check
-u=infodba
[-u=
-p=infodba
{-p=
-pf=password-file}
-g=dba]
-ou=cae_admin
-og=simulation_administrator
-or=simulation_administrator
-product_item_key= key-to-the-root-item-of-the-product-structure
-product_rev_id= revision-ID-of-the-product-item-revision
-product_rev_rule= revision-rule-of-the-product-structure
-product_snapshot= snapshot-folder-name-for-product-structure
-product_variant_rule= variant-rule-for-the-product-structure
-model_item_key= key-to-the-root-item-of-the-model-structure
-model_rev_id= revision-ID-of-the-model-item-revision
-model_rev_rule= revision-rule-of-the-model-structure
-model_snapshot= snapshot-folder-name-for-the-model-structure
-model_variant_rule= variant-rule-of-the-model-structure
-domain= data-mapping-domain-you-want-to-use
-mode=compare-or-propagate-mode
-comparison_dataset_name= dataset-name-to-save-the-comparison-log-if-
the-mode-is-compare
-param_file=parameter-file-in-text-format-containing-parameters-for-the-utility
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-ou
(Optional) Specifies the owning user ID.
This user owns all created objects.
-og
(Optional) Specifies the group associated with the owning user.
Note
If you specify the -ou argument and do not specify the -og argument,
the user’s default group is used.
-or
(Optional) Specifies the role associated with the owning user.
-product_item_key
Specifies the key to the root item of the product structure.
Example:
-product_item_key=\"item_id=000001,my_prop=NVH\"\n");
-product_rev_id
Specifies the revision ID of the product item revision.
-product_rev_rule
(Optional) Specifies the revision rule of the product structure.
This argument is not considered if you specify the -product_snapshot argument.
-product_snapshot
(Optional) Specifies the snapshot folder name for product structure.
-product_variant_rule
(Optional) Specifies the variant rule for the product structure.
-model_item_key
Specifies the key to the root item of the model structure.
Example:
-model_item_key=\"item_id=000002,my_prop=NVHM\"\n");
-model_rev_id
Specifies the revision ID of the model item revision.
-model_rev_rule
(Optional) Specifies the revision rule of the model structure.
This argument is not considered if you specify the -model_snapshot argument.
-model_snapshot
(Optional) Specifies the snapshot folder name for the model structure.
-model_variant_rule
(Optional) Specifies the variant rule of the model structure.
-domain
Specifies the data mapping domain you want to use.
-mode
Specifies the mode for CAE accountability check. The mode can be compare
propagate.
or propagate
If you use the compare mode, the resultant Excel dataset is created under the
model root item revision with the name given in the comparison_dataset_name
dataset name.
If you use the propagate mode, the resultant propagate HTML dataset
is created under the model root item revision with the name from the
CAE_attribute_propagate_summary_dataset_name preference.
-comparison_dataset_name
compare.
Specifies the dataset name to save the comparison log to if the mode is compare
If the dataset name already exists in the model revision, the dataset content
is replaced.
-param_file
Specifies a parameter file in text format containing parameters for the utility.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Example 1
compare), enter the following command
Using an item key and rev ID (mode is compare
in a single line:
cae_execute_cae_accountability_check
-u=adminjones
-p=adminjones
-g=admin
-product_item_key=item_id=0001
-product_rev_id=A
–product_rev_rule=myRevRule
-product_variant_rule=myVariantRule
-model_item_key=item_id=0002
-model_rev_id=A
-model_rev_rule=myRevRule
-model_variant_rule=myVariantRule
-domain=CAE
-mode=compare
-compare_log=C:\temp\comparereport.html
Example 2
propagate), enter the following
Using a product and model snapshot (mode is propagate
command in a single line:
cae_execute_cae_accountability_check
-u=adminjones
-p=adminjones
-g=admin
-product_snapshot=prodSnapshot
-product_variant_rule=myVariantRule
-model_snapshot=ModelSnapshot
-model_variant_rule=myVariantRule
-domain=CAE
-mode=propagate
Example 3
compare), enter the following command in a
Using a parameter file (mode is compare
single line:
cae_execute_cae_accountability_check
-u=adminjones
-p=adminjones
-g=admin
-param_file=C:\temp\myparamfile.txt
cae_configure_dm_propertyset
This utility reads the NodeXMLConfig.xml file and configures the property
set for data mapping.
The NodeXMLConfig.xml configuration XML file is used by the simulation
administrator to control which items, item revisions, forms, or BOM line
attributes are processed. The administrator can edit the required attributes
in the XML file in such a way that Teamcenter processes only those needed
attributes. This significantly improves the performance and memory usage of
data map and structure map execution operations.
For more information about configuring data map and structure map rules using
a configuration file, see Simulation Process Management Guide.
Property sets provide a nonprogrammatic way to control what is placed in
the UserData element. The UserData element is a container for a list of
name-value pairs that allows any attribute or property that is not in the
PLM XML equivalent to be stored. Property sets are a way to get Teamcenter
data into the PLM XML file that may not be in the PLM XML schema and can be
controlled by a programmer who does not know Teamcenter code or how to write
it. A property set is simply a list of property set clauses.
For more information about transfer modes, closure rules, and property sets,
see PLM XML/TC XML Export Import Administration Guide.
Syntax
cae_configure_dm_propertyset
-u=infodba]
[-u=
-p=infodba]
[-p=
-pf=password-file]
[-pf=
-g=dba]
[-g=
-log=log-file-name-containing-results-of-utility-execution]
[-log=
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
install_algebraicformulas
Provides capabilities to create algebraic formula definitions (identical,
linear, quadratic, and rational) in Teamcenter.
If algebraic formulas provided in Teamcenter are deleted, you can run this
utility to reinstall them.
Syntax
-u=user-id {-p=
install_algebraicformulas [-u= -p=password |
-pf=password-file} -g=group]
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To create out of the box algebraic formula definitions in Teamcenter, enter
the following command on a single line:
install_algebraicformulas –u=infodba –p=password –g=dba
install_kbl
Extends the schema to provide Teamcenter support of wire harnesses meeting
the KBL standard.
Note
This utility installs all KBL types. If any of these types already exist
in the system, it is skipped and a warning is displayed in the console.
The message also gets printed in the system log file.
Syntax
-u=infodba {-p=
install_kbl [-u= -p=infodba | -pf=password-file} -g=dba] -h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
update_gde_types
Allows site administrators to update the parent types of existing GDE types
based on information provided in an input file.
Syntax
-u=user-id {-p=
update_gde_types [-u= -p=password | -pf=password-file} -g=group]
-s=parent-type -t=type1,type2] | -f=input-file -h
[-s=
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-f
Specifies the input file containing one or more lines with parent type and
child type GDE information in the following format:
parent_type child_type_name1,child_type_name2,child_type_name3,...
-s
Specifies the parent type to be set for the GDE types.
-t
Specifies the GDE types, separated by commas, of the parent type to be updated.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• Enter the following command on a single line to update specific children of
a GDE type:
update_gde_types -u=user-name -p=password -g=dba -s=InterfaceDefinition -t=port1,port2
• Enter the following command on a single line to update GDE types based
on an input file:
update_gde_types -u=user-name -p=password -g=dba -f=test.txt
migrate_eda_data
Allows you to bulk migrate pre-Teamcenter 8.1 EDA data to the current data
model.
Run this utility to manually perform a bulk EDA migration. This utility
runs automatically when you upgrade from a pre-Teamcenter 8.1 database to a
more recent data model and select Teamcenter EDA Server Support as part of
the upgrade.
Note
The migration process assumes the data does not contain variants.
Syntax
-u=user-id {-p=
migrate_eda_data [-u= -p=password | -pf=password-file} -g=group]
-dryrun]
[-dryrun -ccaSelectFile= path-name] [-migrationList=
-dryrun [-ccaSelectFile= -migrationList= path-name]
-logFile=path-name] [-h
[-logFile= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-dryrun
Performs a dry run of the migration, making no changes to the database. Use
this argument to identify problematic data prior to migration.
-ccaSelectFile
Specifies the input file containing the list of items to select when a
schematic is identified as being related to multiple CCA item objects. The
utility uses this information to migrate EDA schematic data to one of x number
of CCA item objects related to it.
The file format is:
Schematic-Item-ID, CCA-Item-ID
Schematic-Item-ID2, CCA-Item-ID2
...
Note
-migrationList
Specifies the input file containing the list of items to migrate. If this
argument is not provided, all EDASchem item objects are migrated.
The file format is:
Schematic-Item-ID
Schematic-Item-ID2
Schematic-Item-ID3
...
Note
-logFile
Specifies the location of the migration log file. If this argument is not
specified, the default location is TEMP\program-name_date-time.log
.log.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
The log file is generated in the user's TEMP directory. The file name format
is migrate_eda_data- date-time.log
.log.
Restrictions
None.
Examples
To manually perform a bulk migrate of EDA data from a pre-Teamcenter 8.1
database to a more recent data model:
To perform a dry run of the EDA data bulk migration using the selectionFile.txt
CCA selection file:
migrate_eda_data -dryrun -u=infodba -p=infodba -g=dba
-ccaSelectFile=D:\migration\selectionFile.txt
To perform a dry run of the EDA data bulk migration using the selectionFile.txt
CCA selection file and the edaSchemList.txt migration list:
migrate_eda_data -u=infodba -p=infodba -g=dba -dryrun
-ccaSelectFile=D:\migration\selectionFile.txt
-migrationList=D:\migration\edaSchemList.txt
selectionFile.txtmigration list:
To bulk migrate the EDA data specified in the selectionFile.txt
migrate_eda_data -u=infodba -p=infodba -g=dba
-ccaSelectFile=D:\migration\selectionFile.txt
-migrationList=D:\migration\edaSchemList.txt
To bulk migrate the EDA data specified in the selectionFile.txt CCA selection
file:
migrate_eda_data -u=infodba -p=infodba -g=dba
-ccaSelectFile=D:\migration\selectionFile.txt
To bulk migrate the EDA data specified in the selectionFile.txt CCA selection
file, with the migration information sent to the migration_output.log log file:
migrate_eda_data -u=infodba -p=infodba -g=dba
-ccaSelectFile=D:\migration\selectionFile.txt
-logFile=D:\migration\migration_output.log
collect_garbage
Collects unreferenced workspace objects and places them in a WASTE BASKET
folder in the Home folder of the infodba user. Datasets, envelopes, folders,
items, and forms objects can be collected. Released objects are not collected
A special case operation is the orphan option that collects item revisions that
do not have valid parent items. These items revisions may be referenced in
other folders, in which case you are warned while collection is taking place.
Orphan operations should not be combined with other operations.
The collect_garbage utility should be run in two phases. The first phase is
run without the -delete option, which allows objects to be collected in the
WASTE BASKET folder. This allows you to examine the contents of the waste
basket. Once you are satisfied with the contents, the collect_garbage can be
rerun with the -delete option to empty the WASTE BASKET folder.
When working with large databases, use the -query argument to create a report of
all unreferenced objects. You can restrict the report to specific object types
with various arguments. When working with a large report, you can split the
report into separate files that can be executed in batches. Use the -rf and -if
arguments to define the file to which you want to write the report. The batch
jobs can then be executed simultaneously on multiple workstations. Use the
-delete argument to delete the unreferenced objects from the specified folder.
Syntax
-u=user-id {-p=
collect_garbage [-u= -p=password | -pf=password-file} -g=group]
-rf=report-file-name -if=input-file-name
-dataset]
[-dataset -item]
-dataset [-item -occurrence]
-item [-occurrence -absoccdataqualifier]
-occurrence [-absoccdataqualifier
-absoccdataqualifier
-form]
[-form -folder]
-form [-folder -envelope]
-folder [-envelope -all]
-envelope [-all
-all
-orphan]
[-orphan -delete]
-orphan [-delete -report]
-delete [-report -query]
-report [-query
-query
-dataset]
[-dataset -child_references]
-dataset [-child_references -ignore_relation]
-child_references [-ignore_relation
-ignore_relation
-gsidentity]
[-gsidentity -plmappuid=ReportOnly | ReportAndDelete
-gsidentity [-plmappuid=ReportOnly ReportAndDelete]
-start=number] [-end=
[-start= -end=number] [-h-h]
-h
Caution
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-dataset
Specifies that datasets be collected or deleted.
-item
Specifies that items be collected or deleted.
Note
This argument also collects all item revisions associated with the item.
-occurrence
Specifies that occurrences (appearance path nodes, absolute occurrences, and
occurrence threads) are collected.
-absoccdataqualifier
Collects or deletes locally owned unreferenced, and locally owned referenced,
AbsOccDataQualifier)
absolute occurrence data qualifier (AbsOccDataQualifier
AbsOccDataQualifier objects associated
with replica BOM view revisions (BVRs).
-form
Specifies that forms be collected or deleted.
-folder
Specifies that object folders be collected or deleted.
-envelope
Specifies that envelopes be collected or deleted.
-all
Collects or deletes datasets, items, forms, object folders, and envelopes.
This argument does not include orphans.
Siemens PLM Software does not recommend using this argument when processing
a large database.
-orphan
Collects or deletes all item revisions that do not have a valid parent item.
These item revisions may be referenced in other folders, in which case you
are warned while collection is taking place. Use the -orphan argument alone
to collect orphan item revisions in the WASTE BASKET folder. Use the -delete
argument in conjunction with the -orphan argument to delete orphans from the
WASTE BASKET folder. Orphan operations should not be combined with other
operations. See restriction #2.
Note
-delete
-dataset, -item
Deletes all objects of a specified type. One or more of the -dataset -item,
-form, -folder
-form -folder, or -envelope arguments or the -all or -orphan arguments must
be supplied. You can also include the -gsidentity option with the -delete
argument.
-query
Queries the database for the instances of the specified object type when used
in combination with a defined object type.
Note
-report
Creates a report of the objects moved to the WASTE BASKET folder of the
infodba user.
Note
-gsidentity
Locates and removes all invalid GSIdentity records for objects that do not
exist.
-plmappuid
Deletes unreferenced entries from the plmappuid table.
When objects are imported into Teamcenter using PLM XML, an Application Ref
tag can be used to define individual IDs for the imported objects. The IDs
are stored in the plmappuid table. If these objects are later deleted in
Teamcenter, the entries are not deleted from the table. Over time the table
size increases, decreasing performance.
Use the ReportOnly value to generate a count of all the unreferenced entries
in the plmappuid table. Use the ReportAndDelete value to generate a count of
all the unreferenced entries in the table and delete them.
-rf= report-file-name
Creates a report file listing instances of a specified type. This argument may
-item,
be used in combination with object type arguments (-item -dataset, -form
-item -dataset -form,
-envelope, -folder
-envelope -folder, -orphan
-orphan) and the -query argument.
-rfargument retrieves
When used in combination with object type arguments, the -rf
a list of all instances of a specified class and writes the list to a specified
file.
Note
A file name is required when using this argument. If a file name is not
provided, the list is written to a default file named argument-name_report.txt
_report.txt,
item, dataset
where argument name is equal to item dataset, form
form, folder
folder, envelope
envelope, or
orphan. If the default file already exists in the directory where this utility
orphan
is executed, instances are overwritten to the default file.
When the report is large, Siemens PLM Software recommends that it
be split into multiple reports. The suggested naming convention is
argument-name_report_aa.txt
_report_aa.txt, argument-name_report_ab.txt
_report_ab.txt, and so on.
-if= input-file-name
Uses the report file name as input to identify the unreferenced objects of a
given object type. Unreferenced objects are placed in a specified subfolder
within the Waste Basket folder.
Note
-start
Specifies the starting number of objects to process. The default value is 1.
Use this option in conjunction with the -end option.
The -start and -end arguments are recommended when the utility runs out of
memory when loading too many objects of the given class for processing.
-end
Specifies the ending number of objects to process. Use this option in
conjunction with the -start option.
-dataset
Specifies that datasets qualify as garbage for collection.
-child_references
Specifies that datasets qualify as garbage if they are unreferenced in the
system but have secondary objects. Use with the -dataset option.
-ignore_relation
Specifies that datasets are excluded from garbage collection if they have at
least one secondary object attached with any of the relations in the list. The
-dataset,
2. Do not use the -orphan argument with an object type argument -dataset
-item, -form
-item -form, -folder
-folder, -envelope or -all
-all.
Examples
The following examples illustrate how to use the -query argument with this
utility:
• The following example displays a message and exits the program because no
file name was provided for the -rf argument:
collect_garbage -u=infodba -p=infodba -g=dba -item -rf -query
• stdout, enter
To collect unreferenced folders and items and get a report to stdout
the following command on a single line:
collect_garbage -folder -item -report
• To delete folders collected in the WASTE BASKET folder, enter the following
command on a single line:
• To delete all objects collected in the WASTE BASKET folder except orphans,
enter the following command on a single line:
collect_garbage -all -delete
• To collect all item revisions with no parent item, enter the following
command on a single line:
collect_garbage -orphan
• To collect unreferenced items into the item_rep file, enter the following
command on a single line:
collect_garbage -item -query -rf=item_rep
• To process these items and insert into folder, enter the following command
on a single line:
collect_garbage -item -report -if=item_rep
• To delete items in the SUB WASTE BASKET folder, enter the following command
on a single line:
collect_garbage -item -delete -sub_folder=WBITEM_item_rep
• To collect unreferenced forms when there are too many forms in the database
to load in memory, enter the following command on a single line:
collect_garbage -form -end=1000
collect_garbage -form -delete
collect_garbage -form -end=1000
collect_garbage -form -delete
Or
collect_garbage -form -start=1 -end=1000
collect_garbage -form -start=1001 -end=2000
collect_garbage -form -delete
• The following example processes each instance from the report and
identifies unreferenced objects. These objects are placed in a subfolder
of the WASTE BASKET folder:
collect_garbage -u=infodba -p=infodba -g=dba -item -if=list_items.txt
• The following example processes each instance from the report and
identifies unreferenced objects. These objects are placed in a subfolder
of the WASTE BASKET folder. It also displays the object information, such
as object name, ID, object type and owner's name.
collect_garbage -u=infodba -p=infodba -g=dba -item -if=list_items.txt
-report
• The following example retrieves all unreferenced objects of type item and
places them in the WASTE BASKET folder:
collect_garbage -u=infodba -p=infodba -g=dba -item
• The following example retrieves all unreferenced objects of type item and
places them in the WASTE BASKET folder. It also displays object
information, such as object name, ID, object type, and owner's name.
collect_garbage -u=infodba -p=infodba -g=dba -item -report
The following examples illustrate how to use the -delete argument to delete
unreferenced objects:
• The following example deletes all objects in the WBITEM_item_rep.txt
subfolder within the WASTE BASKET folder.
collect_garbage -item -delete -sub_folder=WBITEM_item_rep.txt
• The following example displays a message and exits the program because no
subfolder value is specified:
collect_garbage -u=infodba -p=infodba -g=dba -item -sub_folder=
• The following example deletes all GSIdentity records from the database:
-rf argument:
The following examples illustrate how to use the-rf
• The following example displays a message and exits the program because no
file name is provided for the -rf argument:
collect_garbage -u=infodba -p=infodba -g=dba -item -rf -query
• The following example checks each entry in the given list and identifies
unreferenced objects. A subfolder is created within the WASTE BASKET
folder and all unreferenced objects are placed within this subfolder. It
also displays object information, such as object name, ID, object type
and owner's name.
collect_garbage -u=infodba -p=infodba -g=dba -item -if=list_items.txt
-report
• The following example deletes all instances of type dataset within the WASTE
BASKET folder and all instances in the subfolder named WBDSET_file-name:
collect_garbage -dataset -delete
This section illustrates how to use the -query argument. The following example
compiles a list of objects of type item that are not released and writes
the list to the list_items.txt file:
collect_garbage -u=infodba -p=infodba -g=dba -item -rf=list_items.txt
-query
-dataset, -child_references
The following example shows how to use the -dataset -child_references, and
-ignore_relation arguments. In the example, all unreferenced datasets that
have secondary objects are collected as garbage, except those that have any of
the secondary object attached with the IMAN_Rendering or IMAN_specification
relationship.
collect_garbage -u=infodba -p=<password> -g=dba
-dataset -query -rf=report.txt -child_references
-ignore_relation=IMAN_Rendering,IMAN_specification
Important
Notes
• The -report option for orphan operations outputs in a different format than
for other object types, because orphans are not valid workspace objects.
• The -item option collects the associated item revisions along with the item.
• Errors are reported in the logfile when running in orphan collection mode.
The error reported indicates that an error attempting to load an indirected
object. These errors can be disregarded.
dataset_cleanup
Repairs corrupted datasets and removes orphaned revision anchors.
Caution
Siemens PLM Software recommends that you run this utility only when there
is no other activity on the database.
Problem
Identifiers
A dataset is identified as corrupted if any of the following problems are found:
• Dataset has no reference to an ImanFile object.
• Dataset is an orphan (that is, the dataset refers to the anchor but the
anchor does not go to dataset).
• Anchor size = 0.
Object Cleanup
Rules
A dataset object is reattached to revision anchor if it is an orphan but is
referenced by some other objects, or deleted if it meets the following criteria:
• Dataset is an orphan and is not referenced.
• Dataset is not archived and the associated operating system file does
not exist.
Anchor cleanup
rules
The dataset_cleanup utility repairs dataset revision anchors as follows:
• If the anchor refers to nonexistent datasets, the references are removed
from the anchor.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-rf
Creates a report file listing the corrupted datasets.
-if
Uses the report file as input to purge corrupted datasets or repair revision
anchors.
-of
Cleans up and logs the results to a log file. This argument must be supplied
if the -if argument is used but is optional with the -rf argument.
-a
Specifies that corrupt anchors (those that are orphaned and are not referenced
by a dataset) be deleted and a message be provided.
-b
Specifies the first revision anchor of a contiguous series to be repaired.
The default value is 1.
-e
Specifies the last revision anchor of a contiguous series to be repaired. The
last.
default value is last
Note
-start_date
Specifies the starting date to search for datasets that have been modified
from this date. Use this argument with the -end_date argument.
The format of the date is “DD-MMM-YYYY HH:MM:SS” and must be inside the
double quotes because of the space between the year and the hour. This argument
is used only with the -rf argument.
-end_date
Specifies the ending date to search for datasets that have been modified until
this date. This argument is optional and is used only with the -start_date
argument. If this argument is not specified, the end date is the current date.
The format of the date is “DD-MMM-YYYY HH:MM:SS” and must be inside the
double quotes because of the space between the year and the hour. This argument
is used only with the -rf argument.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To generate a report file called myreportfile listing corrupted dataset
objects, enter the following command on a single line:
$TC_ROOT/bin/dataset_cleanup -u=infodba -p=password -g=dba -rf=myreportfile
• On a database with 1000 dataset revision anchors, you could run the
dataset_cleanup utility as follows:
$TC_BIN/dataset_cleanup -u=infodba -p=infodba -g=dba -b=1 -e=500
-rf=dataset_cleanup_500.report
$TC_BIN/dataset_cleanup -u=infodba -p=infodba -g=dba -b=501 -e=1000
-rf=dataset_cleanup_1000.report
Cleaning Up
Datasets and
Repairing
Revision
Anchors
Perform the following steps to clean up corrupted datasets:
1. Use the dataset_cleanup utility to generate a report file called
myreportfile listing the corrupted dataset objects in the database by
entering the following command on a single line:
$TC_ROOT/bin/dataset_cleanup -u=infodba -p=password -g=dba -rf=myreportfile
Object_UID.
The report file contains a list of corrupted datasets sorted by Object_UID
The report also contains the problem identifier, dataset name, and
ownership.
If the -a argument is specified on the command line, the utility deletes
the corrupt anchors and displays a message to the user. If the -a argument
is not supplied, a message is displayed indicating that the anchor was
skipped and the -a option should be used.
You must review the report file and decide which datasets, if any, should
not be purged from the database.
2. Use a text editor to remove any references to dataset objects that should
not be purged from the database from the report file.
The utility attempts to fix the revision anchor, attach the dataset to
another revision anchor, or purge the datasets from the database.
A final output report is generated showing the results for each dataset.
The report displays the following message if the operation is successful:
problem deleted
delete_item_data
Deletes unused item revisions from the database. The item revisions to be
removed are contained in an input file created by the user.
Syntax
-u=user-id {-p=
delete_item_data [-u= -p=password | -pf=password-file} -g=group]
-inputFile=input-file | -inputKeyFile= input-file]
[-inputFile=
-configFile= configuration-file [-outputDir=
-outputDir=output-file-directory]
-delimiter=delimiter] [-h
{-mode=report | delete} [-delimiter= -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-inputFile
Specifies the absolute path of the input file. The input file has the following
format (the forward slash, /, is the delimiter):
item id/Item Revision1
item id/Item Revision2
item id/Item Revision3
-inputKeyFile
Specifies the absolute path of the input file. The input file has the
following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN],
rev_id=A item_id=000100,rev_id=B
-configFile
Specifies the absolute path of the configuration file. The configuration file
has the following field names and format:
EXCLUDE = Relationship@C=Class; Relationship@T=Type; ...;
INCLUDE = Relationship@T=Type; Relationship@C=Class; ...;
The EXCLUDE and INCLUDE expressions contain three values as shown in the
following examples:
Relationship@C=Class
Relationship@T=Type
• The first value of the expression contains the relation value followed
by the @ separator.
• The second value of the expression contains the type name (TT) or the class
name (CC) followed by the = separator.
• The third value of the expression contains the value of the type or class
followed by the ; delimiter.
Note
o Reference status
o Usage status
o Site ownership
o Deletion status
• delete
Deletes the item revision and its associated objects except those
specifically excluded by entries in the configuration file. If the item
revision is the only revision of an item, the item is also deleted. If the
object is a dataset, all versions of the target dataset are deleted as well
as all forms and named references associated with the dataset.
Any statements not conforming to the format above are not processed for
evaluation This example indicates that the attached objects are not
processed for evaluation and but they are only dereferenced from their
parent item revision.
hsm_capacity_alert
Evaluates if the Teamcenter volume tiers filled capacity exceeds the specified
alert capacity levels. When the filled capacity exceeds the alert capacity
level, an e-mail is sent to the system administrator. The capacity levels are
measured in percentage of total capacity.
Sites can schedule this utility to execute overnight using a UNIX cron job or
the Microsoft Windows at command. This utility can require considerable time
to evaluate the capacity levels on different tiers.
Syntax
-u=user-id {-p=
hsm_capacity_alert [-u= -p=password | -pf=password-file} -g=group]
-alertcapacity= percentage -tier=tier-level [-v
-v]
-v [-h-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-alertcapacity
Specifies alert capacity as a percentage of total capacity. You can include
the percent symbol (%%) in this argument.
-tier
Specifies volume tier. Valid values are 1, primary, and 2 secondary.
-v
Verbose mode. Provides information about results and progress.
-h
Displays help for this utility.
Environment
• The generic command window set with all Teamcenter-related environments.
When the filled capacity exceeds 80 percent of total capacity level, an e-mail
is sent to the system administrator.
hsm_report
Evaluates any or all hierarchical storage management (HSM) policies to
generate a report. Because of performance considerations using the rich client
application interface, Siemens PLM Software recommends the system administrator
execute this utility to create pending migration file sets.
Sites can schedule this utility to execute overnight through a UNIX cron job
or Microsoft Windows at command. This utility can take considerable time
to evaluate all migration policies.
Syntax
-u=user-id {-p=
hsm_report [-u= -p=password | -pf=password-file} -g=group]
-tier={1 | 2 | 3} -migrationreport=[ALL |migration-policy] [-before=
-before=before-date]
-after=after-date] -filepath= filepath
[-after=
-listpolicies=ALL | policy-name] [-v
[-listpolicies=ALL -v] -h]
-v [ -h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-tier
Specifies migration tier. Valid values are:
1 Primary to secondary.
2 Secondary to tertiary.
3 Primary to tertiary.
-migrationreport
Specifies migration policy for which the report need to be reported. To generate
-migrationreport=ALL.
a report for all active migration policies, specify -migrationreport=ALL
-before
23_Mar_2004.
Specifies the beginning date for reporting migration, for example, 23_Mar_2004
-after
23_May_2006.
Specifies the ending date for reporting migration, for example, 23_May_2006
-filepath
Specifies the operating system file path to which the report is saved.
-listpolicies
Indicates that the utility is to list all active policies.
-v
Verbose mode provides information about results and progress.
-h
Displays help for this utility.
Environment
• The generic command window set with all Teamcenter-related environments.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None
Examples
• Execute the following command to generate report on all policies in the
database:
hsm_report -u=infodba -p=infodba -g=dba
-migrationreport=ALL -tier=1 -filepath=c:\temp\report.txt
• Execute the following command to list of all active policies names defined
for a database:
hsm_report -u=infodba -p=infodba -g=dba -listpolicies
index_verifier
Detects missing indexes in a Teamcenter database. There are five types of
indexes that can be detected using this utility:
• Indexes on the primary key of each Teamcenter class.
The PUID (internal attribute of each table mapped to a Teamcenter class)
must have a unique index.
• Functional indexes
This utility detects the necessary functional indexes required by the
version of Teamcenter in use. These functional indexes may include, but
are not limited to the following:
• pom_backpointer, pom_m_lock
Indexes on system tables such as pom_backpointer pom_m_lock, and the
pm_process_list tables.
Syntax
-u=user-id {-p=
index_verifier [-u= -p=password | -pf=password-file} -g=group]
-o= [DRYRUN|DO_IT
[-o= DRYRUN|DO_IT]]
DRYRUN|DO_IT -h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument. One of the two
mutually exclusive password elements is required.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-o
Specifies the action to take with the output of the index_verifier utility.
index_verifier outputs SQL statements that can create database indexes. The -o
argument has the following parameters.
-o DRYRUN
Specifies to output the SQL statements without applying them to the
database. This is the same behavior as not using the -o argument.
-o DO_IT
Specifies to immediately apply the SQL statements to the database to
create indexes.
For Oracle, if the SA user who runs index_verifier wants missing indexes to be
created in a specific tablespace, the SA user must set the TC_INDEX_STORAGE
environment variable:
TC_INDEX_STORAGE=PARALLEL 8 NOLOGGING TABLESPACE tablespace-name
This setting uses up to 8 parallel processes to create indexes and push these
indexes into tablespace-name.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
This utility can be run while users are logged on to Teamcenter.
Examples
None.
mark_for_migrate
Evaluates any or all active policies to determine if there are any Teamcenter
volume files pending for migration, and if found, mark it for migration.
Because of performance considerations using the rich client application
interface, Siemens PLM Software recommends the system administrator execute
this utility to create pending migration file sets.
Sites can schedule this utility to execute overnight through a UNIX cron job
or Microsoft Windows at command. This utility can take considerable time
to evaluate all migration policies.
Syntax
-u=user-id {-p=
mark_for_migrate [-u= -p=password | -pf=password-file} -g=group]
-migrationpolicy=[ALL | policy-name]
-listpolicies]
[-listpolicies
-listpolicies [-v-v]
-v [-h-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-migrationpolicy
Evaluates a given migration policy and marks pending files for migration. To
evaluate all active migration policies and mark them for migration, specify
-migrationpolicy=ALL.
-migrationpolicy=ALL
-listpolicies
List all active policies in chronological order.
-v
Verbose mode. Provides information about results and progress.
-h
Displays help for this utility.
Environment
• The generic command window set with all Teamcenter-related environments.
move_volume_files
Moves files from one Teamcenter volume to another using FMS to move the files
over your WAN/LAN. You can specify selected files to move based on file date,
file age, or by volume allocation rules.
For more information about using volume allocation rules to reallocate volume
files, see the System Administration Guide.
You can run this utility as a cron job or as a scheduled task using
process_move_file_volumes as a .sh or .bat script, respectively. Use
this script if your scheduling tools are not running in the Teamcenter
environment with the appropriate TC_ROOT and TC_DATA variables set. The
script sets these variables and calls tc_provilevars directly before running
the move_volume_files utility. The script accepts the same arguments as the
utility. The arguments specified in the script are run by the utility.
Syntax
move_volume_files -u=user-id {-p=
-p=password | -pf=password-file} -g=group
-f={list
-f= list | move -output_file=file-name] [-srcvol=
move} [-output_file= -srcvol=source-volume]
-destvol=destination-volume]
[-destvol=
-listvolumes]
[-listvolumes -before=access-time-ending-range] [-after=
-listvolumes [-before= -after=access-time-beginning-range]
-maxage=days] [-fszlessthan=
[-maxage= -fszlessthan=bytes] [-fszgreaterthan=
-fszgreaterthan= bytes]
-outrulesfile= file-name] [-rulesfile=
[-outrulesfile= -rulesfile=file-name] [-excludedvollist=
-excludedvollist= file-name]
-presorted_file= file-name] [-listaf
[-presorted_file= -listaf] -transferaf]
-listaf [-transferaf
-transferaf [-v -v] -h]
-v [-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-f
Specifies whether the utility lists or moves files.
-list
Lists the files to be moved in the specified source volume that are
candidates to be moved.
This argument must be used with the -srcvol argument.
-move
Moves the Teamcenter files to the specified destination volume.
This argument must be used with both the -srcvol and -destvol arguments.
-output_file
Specifies the file to which list output is written when using the -f=list or
-listsf arguments. If not specified, the move_tcfiles_list.txt file is created.
-srcvol
Specifies the name of the Teamcenter source volume.
-destvol
Specifies the name of the Teamcenter destination volume.
-listvolumes
Displays a list of all Teamcenter volumes configured in the database.
-before
Specifies the ending access time in the form of dd-mmm-yyyy, for example,
06-Jan-2008. All files with this last access date or earlier are selected.
06-Jan-2008
If the -after argument is specified, then the files selected are within that
range, inclusive.
-after
Specifies the beginning access time in the form of dd-mmm-yyyy, for example,
23-Mar-2007. All files with this last access date or later are selected. If
23-Mar-2007
the -before argument is specified, then the files selected are within that
range, inclusive.
-maxage
Specifies the maximum age (in days) a file can reach and still be eligible
24, any file 24-days old or younger
for transfer. For example, if set to 24
can be transferred.
If used outside of a rules environment, the current date minus the age
specified by this argument is used as the -after value.
-fszlessthan
Specifies the maximum file size (in bytes) a file can reach and still be
64000, all files that are 64,000
eligible for transfer. For example, if set to 64000
bytes or smaller can be transferred.
Note
-v
Executes the utility in verbose mode.
-h
Displays help for this utility.
Restrictions
If the volume path definition is defined in multiple locations, the definition
must be exactly the same in each location. For example, if you define a volume
in the Organization application using a drive/path definition format, you must
use the same drive/path definition in the FMS master configuration file (you
cannot use the UNC format).
Conversely, the volume can be defined in both Organization and in the master
configuration file in UNC format.
Examples
• Enter the following command on a single line to generate the list of all
vol003:
files in Teamcenter volume vol003
move_volume_files -u=infodba -p=infodba -g=dba -f=list
-srcvol=vol003 -destvol=vol1001 -v
• Enter the following command on a single line to generate the list of all
files in Teamcenter volume vol003 that were last accessed in the given
date range:
move_volume_files -u=infodba -p=infodba -g=dba -f=list -srcvol=vol003
-destvol=vol1001 -after=03-Feb-2008 -before=03-Mar-2008 -v
• Enter the following command on a single line to move all the files listed
vol003:
in the move_tcfiles_list.txt file to volume vol003
move_volume_files -u=infodba -p=infodba -g=dba -f=move
-presorted_file=move_tcfiles_list.txt -destvol=vol1003 -v
• Enter the following command on a single line to generate the list of all
files evaluated for a store and forward operation:
move_volume_files -u=infodba -p=infodba -g=dba –listsaf -v
purge_datasets
Removes (purges) old versions of datasets from the database and outputs a list
of each dataset purged, along with the owning user and group.
Note
a.txt, b.txt
version0 of a dataset contains three named references: a.txt
c.txt. The latest version of the same dataset contains two named
and c.txt
b.txt. Using this utility to purge this dataset
references: a.txt and b.txt
fails because of the inconsistency between the named references. The
utility logs an inconsistent data message.
In this situation, you should compare the named references between the
versions and resolve the inconsistency if necessary.
• Compare the named references of the two versions in the rich client
References.
by choosing View→Named References
Syntax
-u=user-id {-p=
purge_datasets [-u= -p=password | -pf=password-file} -g=group]
-b=beginning_anchor -e=ending_anchor [-k=
-k=keep-limit]
-start_date= DD-MMM-YYY HH:MM:SS -end_date= DD-MMM-YYY HH:MM:SS
-set]
[-set -report]
-set [-report -replica_only -site=site-name]
-report [-replica_only
-itemidsfile=item-id-file-name] [-grmtypesfile=
[-itemidsfile= -grmtypesfile= relation-types-file-name]
-includeFolderContents]
[-includeFolderContents -skipInconsistencyCheck]
-includeFolderContents [-skipInconsistencyCheck
-skipInconsistencyCheck [-h -h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-b
Specifies the first version anchor (beginning_anchor) of a contiguous series to
be purged. The default value is 1. Version anchors are objects that keep track
of a set of versions of an object. Datasets are one such class of objects.
-e
Specifies the last version anchor (ending_anchor) of a contiguous series to be
last. Version anchors are objects that keep track
purged. The default value is last
of a set of versions of an object. Datasets are one such class of objects.
-set
Determines if the current keep limit is to be reset to the version limit. If
this argument is not used, the current keep limit is not assigned to the
version limit. If this argument is used, the current keep limit is set to
the version limit, as follows:
• If the -k argument is used, always assign the keep limit to the version
limit no matter whether the dataset is to be purged or not.
• If the -k argument is not used, the current version limit is used to purge;
therefore, it need not be reset to the version limit.
-k
Determines the keep limit to be used. If the -k argument is set to a particular
-k=4, a dataset is purged down to that keep limit.
keep limit, for example -k=4
If the -k argument is not used, the current version limit of the dataset is
used as the purge keep limit.
-start_date
Specifies the start date/time for which datasets are purged. This argument
must be used with the -end_date argument.
-end_date
Specifies the end date/time for which datasets are purged. This argument must
be used with the -start_date argument.
-h
Displays help for this utility.
-report
Produces a report of the datasets to be purged, but does not purge the
datasets from the database.
-replica_only
Specifies that only replica datasets are purged. The -site argument can be
used in conjunction with the -replica_only argument to purge only the datasets
replicated from a specific site.
-site
Specifies the site from which replica datasets will be purged. Valid only in
conjunction with the -replica_only argument.
-itemidsfile
Specifies an input file containing a list of item IDs. Enter one ID per line
or you can enter multiple IDs on one line separated by commas.
-grmtypesfile
Specifies an input file containing a list of specified relation types. Enter
one relation type per line or you can enter multiple relation types on one line
separated by commas. This parameter is optional. If it is not specified, all
relation types are used. This parameter is valid only with the -itemidsfile
argument.
-includeFolderContents
Specifies a folder containing datasets to be purged. This parameter is
optional and is valid only with the -itemidsfile argument.
-skipInconsistencyCheck
Bypasses the consistency check of named references. If not specified, a
dataset is not purged if the named references in version0 of the dataset are
not the same as the named references in the latest version.
Running the utility with this argument purges previous versions of the dataset.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
1. The purge_datasets utility must be run by the infodba user. This
automatically enables the bypass feature and purges old datasets regardless
of owning user and group.
Examples
The default options are not set and use the version limit of the current
dataset. The complete purge_datasets command looks like this:
$TC_BIN/purge_datasets -u=infodba -p=password -g=dba
-b=beginning-anchor -e=ending-anchor -k=keep-limit -set
purge_volumes
Removes (purges) operating system files that represent deleted Teamcenter
objects. The purge_volumes utility can be run interactively, in forced
execution mode, or periodically.
During a Teamcenter session, users delete objects. However, if an object's
associated files remain in the Teamcenter volume, the purge_volumes utility
unlocks these files so they can be deleted at the operating system level.
Syntax
-u=user-id {-p=
purge_volumes [-u= -p=password | -pf=password-file} -g=group]
-f [-s=time]
-f]
[-f -s= -h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-f
Specifies forced execution mode. When the -f argument is supplied, files
are deleted without prompting for confirmation. When the -f argument is not
supplied, the purge_volumes utility runs interactively and prompts the user
before deleting each file.
-s
Specifies sleep time in seconds. After each purge_volumes session is complete,
it is dormant for the specified time before running again. If the -s argument
is not supplied, the purge_volumes only runs once.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
1. When running the purge_volumes utility periodically with the -s argument,
include the -f argument. This disables interactive mode and ensures that
the utility runs to completion.
Examples
To run the purge_volumes utility interactively, enter the following command
on a single line:
$TC_ROOT/bin/purge_volumes -u=infodba -p=password -g=dba
The purge_volumes utility prompts the user before deleting each volume. When
complete, the system displays the following message:
Purge_Volumes: terminating
Stop returned 0
Note
reencode_filenames
Re-encodes volume file names. You may need to rename volume file names on
some system configurations depending on the character set of the system where
the volume resides.
This operation is required when upgrading system configurations where the
character sets of the database and the volume servers do not match and
pre-existing volume files exist. This situation can occur when file names are
created using TCFS and the system is upgraded to a Teamcenter version that
utilizes FMS file services.
By default, the utility does not change the system state and therefore the
file names are not renamed.
To commit the changes, add the -modify=TRUE argument to the command line.
Siemens PLM Software recommends that the utility be executed first without
the -modify=TRUE argument to determine the current state of the volumes on
the system.
Note
Siemens PLM Software recommends sites use this utility with caution and
back up all volumes affected by this utility.
Syntax
-u=user-id {-p=
reencode_filenames [-u= -p=password | -pf=password-file} -g=group]
-l]
[-l -vb -rf=report-file-name [-vh=
-vb]
-l [-vb -vh=volume-host-name]
-v=volume] [-f=
[-v= -f=file] [-modify=
-modify= TRUE | FALSE
FALSE] [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-l
Specifies the utility is to list all volumes.
-vb
Specifies verbose mode.
-rf
Specifies the report file name. This argument is required.
-vh
Specifies the volume host name. The default value is all hosts.
-v
Specifies the volume. The default value is all volumes.
-f
Specifies the file. The default value is all files. If this argument is
specified, you must also specify the -v argument.
-modify
Specifies whether to rename the files. The default value is to not rename the
files and only generate a report. If you specify this argument, you must also
specify the -vh and/or the -v arguments. The value set by this argument is
case sensitive. For example, -modify=TRUE is valid; -modify=true is not valid.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
• To generate a report on all volumes and hosts:
reencode_filenames -u=myuserid -p=mypassword -g=mygroup
-rf=reencode_report.txt
report_volume
Lists the operating system path of all existing Teamcenter volumes. The path
does not include the network node name.
Syntax
-u=user-id {-p=
report_volume [-u= -p=password | -pf=password-file} -g=group]
-f=file-name [-date=
-date=yymmddhhmmss] -h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-f
Specifies the name of the output report file. The utility automatically
appends this file name with the .volumes extension.
-date
Specifies the date string. Must be in yymmddhhmmss format where yy is the year,
mm is the month, dd is the day, hh is the hour, mm is minutes and ss is seconds.
This argument is optional. If not supplied, all volumes are reported.
Otherwise, only volumes and files created after the input date are reported.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
Do not include a directory path with the -f argument. The output file must be
written to the current working directory.
Examples
out.volume, enter the following
To list all existing volumes in a file called out.volume
on a single line:
$TC_ROOT/bin/report_volume -u=infodba -p=infodba -g=dba -f=out
review_volumes
Allows you to view volume file attributes regarding OS volumes (file size,
last modification date, and so on) and to remove unreferenced operating system
files from these volumes.
This utility can generate a report file describing volume usage by various
groups and users, as well as reporting any unreferenced operating system files,
missing operating system files, and unreferenced Teamcenter files.
Unreferenced operating system files can be deleted at the time a report file
is generated or at a later time using a previously-generated report file
as an input.
The report file format is plain text (ASCII) and can be manually edited in
order to not delete certain files. To prevent files from being deleted, remove
any file names before using the report file as input.
You can also save any deleted files to a ZIP format compressed file.
Note
Before creating volumes, you must have an FMS server cache (FSC)
installed and running, and you must set the FMS_BootStrap_Urls preference
with the FSC host and port information.
Syntax
-u=user-id {-p=
review_volumes [-u= -p=password | -pf=password-file} -g=group]
-v=volume -rf= file-name | -if=file-name
-of=file-name] [-zf=
[-of= -zf=file-name] [ -lv
-lv]
-parallel=number-of-parallel-processes] [-rfolder=
[-parallel= -rfolder=folder-name] [-h
-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-v
Runs the utility against a single, specified volume. This argument is required
unless the -lv argument is specified.
-rf
Creates a report file listing unreferenced files in volumes.
Note
-of, -if
The -of -if, and -zf arguments do not work in combination with the
-rf argument. When the -rf argument is present, only the report file
generation is performed.
-if
Specifies the report file to be used as input to delete unreferenced files in
volumes.
-of
Deletes and logs the results to a specified file. This argument must be
supplied if the -if argument is used.
-zf
Saves deleted files to the specified ZIP file. The .zip extension is
automatically appended to the file name if another extension is not specified.
-lv
Lists all volumes defined in the database.
-parallel
Specifies the number of volumes on which to simultaneously run this utility.
You can use this argument to generate reports on all volumes defined in
your database simultaneously (use the -lv argument to determine the number
of volumes defined in your database). However, you must consider available
computing resources while setting this value. Even if you have 800 volumes
defined in your database, you might only have enough computing power to run
five or ten processes in parallel.
This argument must be used with the -rfolder argument.
-rfolder
Specifies the folder in which the multiple reports generated by the -parallel
argument are stored.
This argument must be used with the -parallel argument.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
In versions prior to 8.3.2, you could supply the -rf argument in combination
with the -of argument in order to have the review_volumes utility simultaneously
generate a report file and delete files from the specified volume.
Beginning withTeamcenter 8.3.2, this requires two separate steps:
1. Run the review_volumes utility with the -rf argument.
2. Use the -if and -of arguments to input the previously created report file
and delete volume files.
This change in how arguments are processed was required by the need to improve
scalability and performance of the review_volumes utility, for example, the
addition of the new -parallel argument.
Examples
• To generate a report on a single volume, enter the following command on a
single line:
$TC_ROOT/bin/review_volumes -u=user-id -p=password -g=group -v=volume -rf=file-name
• To generate a report on all volumes and delete files, enter the following
command on a single line:
$TC_ROOT/bin/review_volumes -u=user-id -p=password -g=group -of=file-name -v=volume
• To delete files on all volumes from a previously executed report, enter the
following on a single line:
$TC_ROOT/bin/review_volumes
-u=user-id -p=password -g=group -if=file-name -of=file-name -v=volume
syncCache
Loops through each dataset row for the specified applications in the cache
database and performs the following tests and actions:
• If the Dataset.Folder field is either null or empty, the utility performs
no action.
• The dataset and its related ItemRev and Item rows in the cache database are
updated from Teamcenter. This process performs most of the Open process
except for downloading the design file. Since no files are downloaded, the
staging directory is not modified.
Syntax
syncCache application-name [-help]
Arguments
application-name
Specifies a list of ECAD application names so that only the cached datasets
created by the applications in the list are processed.
-help
Displays help for this utility.
Environment
Requires the same environment as for running EDA.
Files and
Restrictions
None.
Examples
• To run syncCache on datasets created by Cadence Allegro:
syncCache cadenceSchematic cadencePcb
1. When a dataset is deleted from the cache, then the dataset's related ItemRev and Item are also deleted unless they
are referenced by other datasets or ItemRev's.
tcmemstat
Monitors the Teamcenter model event manager (TcMEM).
By default, this utility is stored in the TC_ROOT/tccs/bin directory.
Syntax
-h]
tcmemstat [-h -x]
-h [-x -status]
-x [-status -restart]
-status [-restart -start]
-restart [-start -stop]
-start [-stop -kill]
-stop [-kill
-kill
Arguments
none
Displays TcMEM component versions and run time, if running.
-help or -h or -?
Displays help for this utility.
-x
Displays a summary of TcMEM status.
-status
Displays a complete TcMEM status report
-restart
Stops (if running) and restarts TcMEM, effectively reloading the configuration.
-start
Starts TcMEM if it is not already started.
-stop
Shuts down the TcMEM process immediately if no other clients are connected or
if all connected clients are idle. Otherwise, a warning message is displayed.
-kill
Immediately and unconditionally shuts down the TcMEM process.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
tspstat
Monitors the Teamcenter server proxy.
By default, this utility is stored in the TC_ROOT/tccs/bin directory.
Syntax
tspstatt [-h
-h] -x]
-h [-x -status]
-x [-status -config]
-status [-config -reconfg]
-config [-reconfg -restart]
-reconfg [-restart
-restart
-start]
[-start -stop]
-start [-stop -kill]
-stop [-kill
-kill
Arguments
none
Displays TcServerProxy component versions and run time, if running.
-help or -h or -?
Displays help for this utility.
-x
Displays a summary of TcServerProxy status.
-status
Displays a complete TcServerProxy status report.
-config
Displays the name of TcServerProxy configuration file.
-reconfig
Reloads the TcServerProxy configuration. Use this argument to update a running
TcServerProxy with any HTTP/HTTPS proxy changes.
-restart
TcServerProxy, effectively reloading the
Stops (if running) and restarts TcServerProxy
configuration.
-start
Starts TcServerProxy if it is not already started.
-stop
Shuts down the TcServerProxy process immediately if no other clients are
connected or if all connected clients are idle. Otherwise, a warning message
is displayed.
-kill
Immediately and unconditionally shuts down the TcServerProxy process.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
vms_upgrade
Modifies any commercial part, vendor part, and vendor data created before
Teamcenter 2007.1 MP4 to conform to the updated vendor management data model.
The utility creates GRM relations between these items where a VendorIdentifier
object had previously been used. The CommercialPart object is now directly
Vendor Part
related to the ManufacturerPart (Vendor Part) object by the new VMRepresents
relation, which holds vendor status information. The VendorIdentifier and
IdContext objects are no longer associated with the CommercialPart object. The
new TC_vendor_part_rel GRM relation is used to associate the ManufacturerPart
with the vendor.
Syntax
application_root/bin/vms_upgrade [-u=
-u=user-id {-p=
-p=password | -pf=password-file}
-g=group] -h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-h
Displays help for this utility.
unmigrate_from_hsm
Reverses migration of the existing Teamcenter volume files objects from the
purview of hierarchical storage management (HSM) by removing the hsm_info
object associated with file objects from the database. Use this utility for
the following situations:
• Encountering errors while migrating files to HSM.
After the execution of this utility completes, all physical volume files must
be brought back to a primary tier in the event it has already migrated by
third-party HSM software to secondary or tertiary tier. Siemens PLM Software
recommends sites execute this utility on a specific volume when no other
users are accessing Teamcenter, especially during maintenance or upgrades.
This utility can take considerable time to reverse migrate all files from
the purview of HSM.
Syntax
-u=user-id {-p=
unmigrate_from_hsm [-u= -p=password | -pf=password-file} -g=group]
-listvolumes]
[-listvolumes -volume= ALL | volume-name] [-v
-listvolumes [-volume= -v] -h]
-v [-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-listvolumes
List all volumes defined for the database.
-volume
Specifies particular volume to unmigrate. The system administrator can specify
volume=ALL to unmigrate all volumes from the purview of HSM.
-v
Verbose mode. Provides information about results and progress.
-h
Displays help for this utility.
Environment
• The generic command window set with all Teamcenter-related environments.
upgrade_vendor_part
Populates the new typed reference attribute in the ManufacturerPart from
the existing data during upgrade. The associated vendor for the new typed
reference attribute is retrieved from the TC_Vendor_part_rel relation.
Syntax
-u=infodba
upgrade_vendor_part [-u=
-u= -g=dba -h
-p=$TC_USER_PASSWD} -g=
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
-p
Specifies the password.
-g
Specifies the group associated with the user, in this case, dba
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
vm_report
Evaluates any or all volume management policies to generate a report. Because
of performance considerations using the rich client application interface,
Siemens PLM Software recommends the system administrator execute this utility
to create pending migration file sets.
Sites can schedule this utility to execute overnight through a UNIX cron job
or Microsoft Windows at command. This utility can take considerable time
to evaluate all migration policies.
Syntax
-u=user-id {-p=
vm_report [-u= -p=password | -pf=password-file} -g=group]
-listvolumes]
[-listvolumes -listpolicies]
-listvolumes [-listpolicies
-listpolicies
-migrationreport= migration-policy] [-filepath=
[-migrationreport= -filepath=filepath]
-srcvol=source-volume-name
-migrationreport=ALL {-srcvol=
[-migrationreport=ALL
-destvol= destination-volume-name} -filepath= filepath]
-before=before-date] [-after=
[-before= -after=after-date] [-v
-v]
-v [-h-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-listvolumes
Indicates that the utility is to list all volumes in the database.
-listpolicies
Indicates that the utility is to list all active policies.
-migrationreport
Specifies migration policy for which the report need to be reported.
To generate a report on all active migration policies, specify
-migrationreport=ALL If you specify ALL for the migration policy, you must
include either the -srcvol or -destvol arguments.
-srcvol
Specifies source volume name.
-destvol
Specifies destination volume name.
-before
23_Mar_2004.
Specifies the beginning date for reporting migration. For example, 23_Mar_2004
-after
23_May_2006.
Specifies the ending date for reporting migration. For example, 23_May_2006
-filepath
Specifies the operating system file path to which the report is saved.
-v
Verbose mode. Provides information about results and progress.
-h
Displays help for this utility.
Environment
• The generic command window set with all Teamcenter-related environments.
-migrationreport=policy-name -filepath=c:\temp\report.txt
• Execute the following command to list of all active policies names defined
for a database:
vm_report -u=infodba -p=infodba -g=dba -listpolicies
xml_validator
Checks the XML file against the document type definition (DTD) to which it
should conform.
Syntax
xml_validator
auto*] file.xml
-v=always | never | auto*
[-v=always
Arguments
-v
always, never
Specifies the validation scheme: always never, auto*
auto*. If not explicitly
auto*.
stated, defaults to auto*
file .xml
Specifies the XML file to be validated.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Examples
1. The following example checks only the structure of the XML file:
xml_validator -v=never file1.xml
2. This example produces an error if the XML file does not have an associated
DTD file. It always checks the validity of the XML file.
xml_validator -v=always file1.xml
3. This example checks the structure of the XML file if it does not correspond
to a DTD. If the file corresponds to a DTD, it checks the validity of the
file's XML against that of the DTD.
xml_validator file1.xml
fscadmin.sh/.bat
Monitors and controls File Management System FSC servers. This can be used to
check the status of a server, perform a shutdown, modify logging levels, query
performance counters, or to clear or inspect caches.
Syntax
$FMS_HOME/fscadmin.sh
-h]
[-h -k keyfile] [-s
-h [-k -s serveraddr] [-f
-f tickets-file] [command
command]
command
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-h
Displays help for this utility.
-k
Specifies a file containing the encryption key required by this system. A key
file is a text file containing an ASCII-HEX encryption key. This is generally
the same key file referenced in the fmsmaster.xml file for this system.
This argument is optional.
Example: fscadmin -k site123keyfile.txt ./status
Default: <none>
-s
Specifies the protocol server for the FSC and the port you wish to communicate
with.
Example: fscadmin -s http://myserver:4445 ./status
Default: http://127.0.0.1:4444
-f
Specifies the name of the tickets file.
command
Command is a formatted string with the following fields:
FSCID/FUNCTION[/SUBFUNCTION/…]
• fscadmin.properties.template
A template of the available properties that can be set for the fscadmin
utility.
Restrictions
• You can route fscadmin commands to remote FSCs without having to specify
that FSCs address on the command line.
• Input and output through the fscadmin utility is not localized. Commands
are subject to change without notice.
Function[/Subfunction/…]
Details
FUNCTION[/SUBFUNCTION] Description
cachesummary Summary of the read and write caches
(number of files, bytes, hits, misses).
cachesummary/read Summary of the read cache.
cachesummary/write Summary of the write cache.
cachesummary/whole Summary of the whole file cache.
cachedetail Summary and detail of the read and write
caches (GUIDS, filesizes).
cachedetail/read Summary and detail of the read cache.
cachedetail/write Summary and detail of the write cache.
FUNCTION[/SUBFUNCTION] Description
cachedetail/whole Summary and detail of the whole file
cache.
clearcache Clears (empties) both read and write
caches.
clearcache/read Clears the read cache.
clearcache/write Clears the write cache.
clearcache/whole Clears the whole file cache.
config Dumps the configuration for this FSC.
config/hash Displays the MD5 hash for the current
master configuration file.
config/reload Reloads the latest configuration from the
usual configuration sources, either from
disk or via download from another FSC.
config/reload/all Performs a coordinated configuration
reload first reloading all FSC
configuration masters, then reloading
all FSC configuration slaves. Returns
final configuration hash results in a
comma-separated list.
config/reload/slaves Performs a coordinated configuration
reload of all FSC configuration slaves.
Returns final configuration hash results
in a comma-separated list.
config/report Queries the configuration hashes from
all FSCs and returns results in a
comma-separated list.
filestoresummary Summary of all filestores (volumeid, root
path, files, dirs, bytes).
filestoresummary/ xxx Summary of a filestore specified by xxx.
filestoredetail Summary and detail of all filestores
(file name, length, last modified, last
accessed).
filestoredetail/ xxx Summary and detail of a filestore
specified by xxx.
loadfsccache/status Displays the simple Load FSC Cache status.
This includes the number of tickets
received, valid, invalid, expired, etc.
It also includes the number of files that
have been downloaded, failed to download,
and are waiting to be downloaded.
loadfsccache/status/reset Resets the Load FSC Cache statistics.
loadfsccache/queue Displays the tickets remaining in the
Load FSC Cache queue.
FUNCTION[/SUBFUNCTION] Description
loadfsccache/queue/clear Removes all remaining tickets in the Load
FSC Cache queue.
loadfsccache/filelist Uses -f option to upload a file of
tickets that should be populated into the
specified FSC.
loadfsccache/stat Returns the number of transactions
processed by the Load FSC Cache context.
loadfsccache/stat/valid Returns the number of valid tickets
processed.
loadfsccache/stat/invalid Returns the number of invalid tickets
processed.
loadfsccache/stat/expired Returns the number of expired tickets
processed.
loadfsccache/stat/total Returns the total number of tickets
processed.
loadfsccache/stat/ok Returns the number of files successfully
populated.
loadfsccache/stat/failed Returns the number of files which failed
to populate.
loadfsccache/stat/waiting Returns the number of tickets remaining
to be populated
loadfsccache/stat/processing Returns 1 if population is occurring,
otherwise 0.
loadfsccache/stat/localfiles Returns the number of local files on
which population was attempted, but was
not required.
loglevel/show Shows the current logging level of all
loggers.
loglevel/[fatal|error|warn Sets the log level for all loggers
|info|debug] starting with com to xxx.
loglevel/ logger/[fatal|error|warn Sets error log level on the logger and
|info|debug] all children. logger is in the form of
the name of the class.package of which
you wish to change the log level.
com.teamcenter.fms.servercache
is all of the server
com.teamcenter.fms.servercache.
com.teamcenter.fms.servercache
FileHandleCacheManager sets only the
loglevel on that class.
log Dumps the current logfile contents.
purgecache Purges the caches, reclaiming disk space.
purgecache/read Purges the read cache.
FUNCTION[/SUBFUNCTION] Description
purgecache/write Purges the write cache.
purgecache/whole Purges the whole file cache.
purgeguid/ xxx Removes the GUID (file) specified by xxx
from the cache.
perfcounters Performance counters
perfcounters/reset Resets the performance counters.
shutdown Stops the FSC when it becomes idle (when
all current file transfers are complete).
The FSC will reject all new incoming file
requests.
shutdown/maxwait/ xxx Stops the FSC when it becomes idle (when
all current file transfers are complete)
or when a maximum number of seconds have
been exceeded. The FSC will reject all
new incoming file requests. If the server
does not become idle, xxx is the number
of seconds to wait before forcing the
shutdown.
shutdown/now Stops the FSC.
status Displays simple status about the FSC
(FSCID, site, running time) and also
prints the number of concurrent admin
and file-based connections. This also
shows the remaining time before a forced
shutdown, if one is pending.
stop Stops the FSC.
useragents Prints a tally of all the useragents
(clients) that have connected.
version Prints the versions of the FSC JAR files.
Examples
• To see general statistics of the server, enter the following command:
./fscadmin.sh -s http://myserver:4445 ./status
Example output:
FSC id: myfsc, site:fms.teamcenter.com
running for 3 days, 17 hours, 3 min, 46 sec
Current number of file connections: 0
Current number of admin connections: 1
Example output:
Cache summary: myfsc-FSCReadMap
Files: 0, Bytes: 0, Hits: 0, Misses: 0
• To see version information for the server, enter the following command:
./fscadmin.sh -s http://myserver:4445 ./version
Example output:
FMSServerCache version: 1.1, build date: 20050729
FMSUtil version: 1.1, build date: 20050729
FSCJavaClientProxy version: 1.1, build date: 20050729
Example output:
loglevel done.
• To cause an idle shutdown, waiting no more than 1 hour, enter the following
command on a single line:
./fscadmin.sh -s http://myserver:4445 ./shutdown/maxwait/3600
Example output:
FSC will shutdown when idle, or in 3600 seconds...
FSCWholeFileCacheUtil
Purges files from the whole file cache. Purge the cache based on file age,
subdirectory size, and/or available disk space. This utility also purges
misplaced files.
By default, this utility is stored in the FSC_HOME/bin directory.
Syntax
-clear | -purge
FSCWholeFileCacheUtil {-clear -d=cache-root-directory-path]
-purge} [-d=
-l=file-name] [-maxf=
[-l= -maxf=maximum-files-per-subdirectory]
-maxage=maximum-file-age] [-pctfree=
[-maxage= -pctfree=percent-disk-free]
-temp=temporary-cache-directory-path] [-h
[-temp= -h]
-h
Arguments
-clear
Clears all permanent cache files from the cache.
-purge
Performs a single purge cycle on the cache.
-d
Specifies the version subdirectory path of the cache. If not set, the current
directory is used.
Use with either the -clear or -purge arguments.
-l
Specifies the full path name of the log file. If not set, no logging is
performed.
Use with either the -clear or -purge arguments.
-maxf
Specifies the maximum number of files per subdirectory. If the number of
files stored in the subdirectory exceeds the configured amount, files are
automatically purged to the maximum number of files specified.
10240. The default setting is 10240
Valid values are 1024 through 10240 10240.
Use only with the -purge argument.
-maxage
Specifies (in days) the maximum file age. All cache files older than the
specified age are purged.
3650. The default setting is 3650
Valid values are 0 through 3650 3650. Setting this
argument to 0 clears the entire cache.
Use only with the -purge argument.
-pctfree
Specifies the minimum percentage of disk space to remain free.
100. The default setting is 0. Setting this
Valid values are 0 through 100
argument to 0 purges the cache by only the subdirectory count specified by the
-maxf argument and the file age specified by the -maxage argument. Setting
this argument to 100 clears the entire cache.
fccstat
Monitors the local FMS cache (FCC).
By default, this utility is stored in the TC_ROOT/tccs/bin directory.
Syntax
$FMS_HOME/fccstat
[-x] [-status] [-config] [-reconfig] [-purge] [-clear] [-restart]
[-start] [-stop] [-kill]
Arguments
none
Prints whether FCC is online, displays FCC versions and run time if running.
-help or -h or -?
Displays help for this utility. Help can be localized if the FCC is running.
-x
Prints FCC cache statistics summary, including whole file read, whole file
write, and segment cache statistics. In addition, this option displays all
offline FSC connections. Offline FSC connections are those that have been
attempted and failed but have not yet been restored to service.
-status
Prints FCC status and statistics summary, including whole file read, whole file
write, and segment cache statistics, as well as client request statistics,
FSC upload and download statistics, and the currently active assigned FSC.
Assigned FSCs are listed as active by default, even if they have never been
used. FSC addresses that have been attempted and failed, but have not yet been
restored to service, are reported as offline.
-config
Displays the name of the local FCC configuration file used for bootstrapping.
-purge
Purges all files from the FCC cache, including the segment cache extent files.
-clear
Purges the cache completely. This removes all data but retains the segment
cache extent files.
-reconfig
Reloads the FCC configuration. Use this option to update a running FCC with
changes made to the local FCC XML configuration files.
-restart
Stops (if running) and restarts the FCC, effectively reloading the
configuration. Environment variables still override any configuration file
settings or changes.
-start
Starts the FCC if it is not already started.
-stop
Shuts down the FCC process immediately if no other clients are connected or if
all connected clients are idle. Otherwise, a warning message is displayed.
-kill
Immediately and unconditionally shuts down the FCC process.
Environment
As specified in Manually configuring your environment for Teamcenter utilities
and the following:
• The FMS_HOME variable must be set to a valid FMS server directory.
Example output:
fccstat: FCC offline.
• To display help for this utility and a statistic summary, run the fccstat
command with the status argument. For example:
C:\Tc2007\portal\fms\bin>fccstat -? -x -status fccstat -?:
Example output:
FMS Client Cache Status Utility
fccstat command line options:
no options Display FCC component versions and execution time.
-help Display this help message.
-h Display this help message.
-? Display this help message.
-x Display FCC status summary.
-status Display complete FCC status.
-config Display FCC configuration filename.
-purge Clear the FCC Cache and remove extents.
-clear Clear the FCC Cache and retain extents.
-remove (UID) Remove a UID from the FCC Cache.
-restart Stop and restart the FCC.
-stop Stop the FCC if no clients are connected.
-kill Stop the FCC even if clients are connected.
fccstat -x:
Cache:
segment: 1 files, 507904 bytes.
read: 38 files, 268433410 bytes.
write: 0 files, 0 bytes.
Servers:
0 files downloaded.
Active assigned FSC is 'http://127.0.0.1:4444/'
fccstat -status:
Cache:
segment: 1 files, 507904 bytes, 0 hits, 0 misses.
read: 38 files, 268433410 bytes, 0 hits, 0 misses.
write: 0 files, 0 bytes.
Clients:
3 Client connections established.
6 Client request messages processed.
5 Client response messages processed.
0 Client status messages processed.
0 Client error messages processed.
Servers:
0 segments downloaded.
0 files downloaded.
0 files uploaded.
Active assigned FSC is 'http://127.0.0.1:4444/'
• To display the name of the local FCC configuration file and clear the
cache, run the fccstat command with the clear argument. For example:
C:\Tc2007\portal\fms\bin>fccstat -config -clear
Example output:
fccstat -config:
Z:\pkmvob1\fms\build\install\fms/fcc.xml
fccstat -clear:
Cache cleared.
• To purge a UID from the cache, run the fccstat command with the remove
argument. For example:
C:\Tc2007\portal\fms\bin>fccstat
-remove abcd1234fedc9876ef005678ba005432
Example output:
fccstat -remove:
UID abcd1234fedc9876ef005678ba005432 has been removed from the FCC Cache.
• To stop the FCC, run the fccstat command with the stop argument. For
example:
C:\Tc2007\portal\fms\bin>fccstat -stop
Example output:
fccstat -stop:
FCC Stopped.
• To restart the FCC, run the fccstat command with the restart argument.
For example:
C:\Tc2007\portal\fms\bin>fccstat -restart
Example output:
fccstat -restart:
FCC Started.
• To shut down the FCC process immediately when no clients are connected or
all clients are idle, run the fccstat command with the stop argument.
For example:
C:\Tc2007\portal\fms\bin>fccstat -stop
Example output:
fccstat -stop:
FCC Stopped.
• To kill the FCC, run the fccstat command with the kill argument. For
example:
C:\Tc2007\portal\fms\bin>fccstat -kill
Example output:
fccstat -kill:
FCC Stopped.
• To print an FCC status and statistics summary, including whole file read,
whole file write, and segment cache statistics, as well as client request
statistics, FSC upload and download statistics, and the currently assigned
FSC, run the fccstat command with the status argument. For example:
C:\Tc2007\portal\fms\bin>fccstat -status
Example output:
fccstat -status:
Cache:
segment: 19 files, 52854784 bytes, 590722 hits, 1781 misses.
read: 19 files, 134216705 bytes, 106253 hits, 38 misses.
write: 0 files, 0 bytes.
Clients:
5 Client connections established.
388741 Client request messages processed.
392284 Client response messages processed.
79 Client status messages processed.
1 Client error messages processed.
Servers:
839 segments downloaded.
19 files downloaded.
0 files uploaded.
Active assigned FSC is 'http://127.0.0.1:4444/'
install_encryptionkeys
Creates encryption keys for the File Management System (FMS). This utility
is initially invoked by the Teamcenter installation procedure to install the
predefined encryption keys. After the initial installation, this utility can
be used to list, modify, and delete encryption keys.
Syntax
-u=user-id {-p=
install_encryptionkeys [-u= -p=password | -pf=password-file} -g=group]
-f=install | list | modify | delete | install_mediator_key [-h-h]
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-f
Specifies one of the following functions:
install Installs the default encryption keys in the
database.
list Lists the encryption keys currently installed in
the database.
load_fcccache
Prepopulates the FMS client cache (FCC) using ITK calls, resulting in improved
cache performance. You can also use this utility to read the PLM XML file
generated by the bomwriter utility, and then parse the UIDs and generate read
tickets. The read tickets can be prepopulated on the target FCC process.
Additional options include:
• Prepopulate the FCC based on dataset type.
Syntax
-u=user-id {-p=
load_fcccache [-u= -p=password | -pf=password-file} -g=group]
-f=list [-plmxml=
-plmxml=file-name][-dataset_type=
-dataset_type= dataset-type-name]
-f=load [-plmxml=
-plmxml=file-name] [-input_file=
-input_file=file-name] [-dataset_type=
-dataset_type= dataset-type-name]
-latest_version= yes | no
[-latest_version= -output_file=file-name] [-copy_out=
no] [-output_file= -copy_out=directory]
-output_plmxml= file-name] [-use_absolute_location=
[-output_plmxml= -use_absolute_location= yes | no
no]
-config=configuration-file] [-log_filename=
[-config= -log_filename= log-file-name] [-log_types=
-log_types=levels]
-copy_out_lifetime= value] [-lifetime_check
[-copy_out_lifetime= -lifetime_check = yes | no
no]
-lifetime_check_interval= value] [-lifetime_process_limit=
[-lifetime_check_interval= -lifetime_process_limit= value] [-purge
-purge] -h]
-purge [-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-f
Runs either the list or load function.
The list function lists specified UIDs, which can then be used to prepopulate
the FCC using the load function. The list function accepts the following input:
• -plmxml= file-name
Lists the UIDs of all datasets in the PLM XML file generated by the
bomwriter utility.
• -dataset_type= dataset-type-name
Lists the UIDs of all datasets of the specified dataset type.
The load function prepopulates the FCC as specified by the following input:
• -plmxml= file-name
Prepopulates the FCC with all the datasets in the PLM XML file generated
by the bomwriter utility.
• -input_file= file-name
Prepopulates the FCC based on the UIDs previously generated by the list
function.
• -dataset_type= dataset-type-name
Prepopulates the FCC with all datasets of the specified dataset type.
-latest_version
Use yes to prepopulate the FCC with only the latest dataset version or no to
yes.
use the version specified by the UID. The default value is yes
Use this argument with the load function.
-output_file
Direct the output to a specific file by specifying a file name. If this
stdout.
argument is not used, the default output file is stdout
-copy_out
Copy each downloaded file to a specific directory by specifying the directory
name.
Use this argument with the load function.
-output_plmxml
If the load function is set to prepopulate the FCC with a PLM XML file, and
the -copy_out argument is used to specify a specific directory location to
which copies of each downloaded file is loaded, and then use this argument
to update the PLM XML with the same directory location as specified by the
-copy_out argument.
You must use this argument with the load function and the -copy_out argument.
-use_absolute_location
Use yes to create absolute location references in the output PLM XML file. For
-config.
more information about configuring default settings, use -h -config
-config
Specifies the file containing default settings. For more information about
-config.
configuring default settings, use -h -config
-log_filename
Specifies the file to which logging messages are printed. If not set, the
default location is the stderr file. For more information about configuring
-log_types.
logging messages, use -h -log_types
-log_types
Specifies which types of messages are logged. Valid values are:
NONE
ERROR
WARNING
INFORMATION
DEBUG
PERFORMANCE
ALL
Combine log types using the plus (+) symbol as a delimiter. For example:
ERROR+WARNING+INFORMATION
-log_types.
For more information about configuring logging messages, use -h -log_types
-copy_out_lifetime
Specifies the lifetime date of the files stored in the directory specified by
the -copy_out directory. The directory is scanned for files that are older
than the specified lifetime date. Use this argument to automatically clean up
older files that are no longer used. This argument must be used in conjunction
with the -copy_out argument.
Use -h -config to display more information about configuring default settings.
-lifetime_check
Use yes to scan the directory specified by the -copy_out directory during
startup and perform a lifetime check. The lifetime check is performed in
random order. This argument must be used in conjunction with the -copy_out and
-copy_out_lifetime arguments.
Use -h -config to display more information about configuring default settings.
-lifetime_check_interval
Specifies how frequently to scan the directory specified by the -copy_out
directory and perform a random cleanup based on the interval value. For
10, a lifetime check is performed once every ten executions.
example, if set to 10
-copy_out, -copy_out_lifetime
This argument must be used in conjunction with the -copy_out
and -lifetime_check arguments. If the directory specified by the -copy_out
argument contains many files, and if it is not important to check the lifetime
on each execution, setting the -lifetime_check_interval argument can improve
performance.
Use -h -config to display more information about configuring default settings.
-lifetime_process_limit
Specifies how long (in seconds) lifetime processing can continue. The lifetime
check is performed in random order. If the directory specified by the -copy_out
directory contains a large number of files, lifetime processing can be lengthy.
You can use this argument to randomly process a subset of the files by setting
-copy_out,
a low value. This argument must be used in conjunction with the -copy_out
-copy_out_lifetime and -lifetime_check arguments.
Use -h -config to display more information about configuring default settings.
-purge
Purges all files from the directory specified by the -copy_out directory.
-h
Displays help for this utility. Use -h -config to display more information
about configuring default settings. Use -h -log_types for more information
about logging output.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
None.
Examples
To ensure the JT files referenced in the xyz001.plmxml file are using the same
dataset versions as when it was generated (rather than the latest version),
enter the following command on a single line:
load_fcccache -u=infodba -p=password -f=load -plmxml=xyz001.plmxml
-latest_version=no -copy_out=plmxml_cache -output_plmxml=xyz001_local.plmxml
load_fsccache
Reads a PLM XML file, parses it for globally unique identifiers (GUIDs) and
generates read tickets for files referenced in the PLM XML file. The read
tickets can be stored in the operating system (OS) file. The utility can also
be used to load the file server cache (FSC) of a target/distant FSC serving
the same database using the read tickets file.
Syntax
-u=user-id {-p=
load_fsccache [-u= -p=password | -pf=password-file} -g=group]
-plmxml=file-name | -dataset_type= dataset-type-name} ] |
-f=list {-plmxml=
{ [-f=list
-f=load -fsctargets= string { [-plmxml=
[-f=load -plmxml=file-name] | [-input_file=
-input_file=file-name] |
-dataset_type= dataset-type-name] } } [-latest_version=
[-dataset_type= -latest_version= yes | no
no]
-output_file=file-name] [[-config=
[-output_file= [-config=file-name][-log_filename=
-log_filename= file-name]
-log_types=log-level] [-h
[-log_types= -h[-config
-h -config] -log_types]
-config [-log_types
-log_types ]
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-f
Runs either the list or load function.
The list function creates a list of GUIDs for object in the specified PLM XML
file, which can then be used to prepopulate the FSC using the load function.
The list function requires one of the following input arguments:
• -plmxml= file-name
Lists the GUIDs of all datasets in the specified PLM XML file.
• -dataset_type= dataset-type-name
Lists the GUIDs of all datasets of the specified dataset type.
The load function prepopulates the FSCs specified in the -fsctargets argument
using the information provided by one of the following input arguments:
• -plmxml= file-name
Prepopulates the FSC with all the datasets in the specified PLM XML file.
• -input_file= file-name
Prepopulates the FSC based on the GUIDs previously generated by the list
function.
• -dataset_type= dataset-type-name
Prepopulates the FSC with all datasets of the specified dataset type.
-latest_version
Specifies the dataset version to use to prepopulate the FSC. Set to yes to
send the latest dataset version or no to use the version specified by the
yes.
GUID. The default value is yes
Use this argument with the load function.
-output_file
Directs the output to a specific file by specifying a file name. If this
stdout.
argument is not used, the default output file is stdout
-config
Specifies the file containing default settings. For more information about
configuring default settings, use the -h -config arguments.
-log_filename
Specifies the file to which logging messages are printed. If not set, the
default location is the stderr file. To display information about configuring
logging messages, use the -h and -log_types arguments together.
-log_types
Specifies which types of messages are logged. Valid values are:
NONE
ERROR
WARNING
INFORMATION
DEBUG
PERFORMANCE
ALL
Combine log types using the plus (+) symbol as a delimiter. For example:
ERROR+WARNING+INFORMATION
• fsc_cvg001_infodba)
To prepopulate the FSC for cvg001 (identified with fscid fsc_cvg001_infodba
with the datasets in the abc001.xml file and store all types of log
messages to the load.out file:
load_fsccache -u=infodba -p=password -g=dba -fsctargets=fsc_cvg001_infodba
-f=load -plmxml=abc001.xml -log_types=ALL -log_filename=c:\temp\load.out
add_req_templates
Installs the default Microsoft Word and Excel requirements management
templates.
Note
This utility usually runs during the installation and upgrade processes
and does not need to be run manually. However, if the installation or
upgrade does not install the templates, you can run this utility manually.
Syntax
-u=user-id] [-p=
add_req_templates [-u= -p=password | -pf=password-file] [-g=
-g=group]
-f=path-of-folder -t=
[-f= -t={SpecTemplate
SpecTemplate | ObjectTemplate | ExcelTemplate
ExcelTemplate}]
-i=path-of-file]
[-i=
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-f
Specifies the path of the folder from which the templates are imported. Use
this argument to import multiple templates from the same folder.
If you use this argument, you must also use the -t argument.
-t
SpecTemplate,
Specifies the template type being imported. It is either SpecTemplate
ObjectTemplate, or ExcelTemplate
ObjectTemplate ExcelTemplate.
If you use this argument, you must also use the -f argument.
-i
Specifies the path of the template file to be imported. Use this argument
to import a single template.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
• To use this utility, you must be a user with system administration
privileges or be granted authorization by a user with system administration
privileges.
add_se_templates
Installs the system engineering templates, diagramming templates, and Visio
templates required for Systems Engineering.
Note
This utility usually runs during the installation and upgrade processes
and does not need to be run manually. However, if the installation or
upgrade does not install the templates, you can run this utility manually.
Syntax
-u=user-id] [-p=
add_se_templates [-u= -p=password | -pf=password-file] -g=group]
[-g=
-dir=templates-directory
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-dir
Specifies the directory containing the Systems Engineering templates; for
example, ${TC_INSTALL_DIR}/systemsengineering .
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
To use this utility, you must be a user with system administration privileges
or be granted authorization by a user with system administration privileges.
req_convert_to_plaintext
Removes rich text, such as images, URLs, and OLEs, from requirements and
converts the body text into plain text. It also applies the content type as
plain text to the requirement revision.
Syntax
-u=user-id] [-p=
req_convert_to_plaintext [-u= -p=password|
-pf=password-file] [-g=
-g=group]
-i=specification-element-id -r=revision-id
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-i
Specifies the specification element's item ID to convert.
-r
Specifies the revision’s ID.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
To use this utility, you must be a user with system administration privileges
or be granted authorization by a user with system administration privileges.
req_migrate_fulltext
Migrates all full text from the input PLM XML file to the Teamcenter database.
It can create or update the full text and set the rich text contents of full
text.
Syntax
-u=user-id] [-p=
req_migrate_fulltext [-u= -p=password| -pf=password-file] [-g=
-g=group]
-file=complete-path-to-plmxml-file
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-file
Specifies the complete path of input PLM XML file.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
To use this utility, you must be a user with system administration privileges
or be granted authorization by a user with system administration privileges.
req_migrate_grm
Migrates all trace links from the input PLM XML file to the Teamcenter
database. It creates trace links between the source objects and target objects
as specified in the PLM XML file. Trace links that already exist in the
database are skipped.
Syntax
-u=user-id] [-p=
req_migrate_grm [-u= -p=password| -pf=password-file] [-g=
-g=group]
-file=complete-path-to-plmxml-file
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-file
Specifies the complete path of input PLM XML file.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
To use this utility, you must be a user with system administration privileges
or be granted authorization by a user with system administration privileges.
req_migrate_richtext
Migrates rich text from Teamcenter 2007 to Teamcenter 8 and later versions. It
is required only in special cases to recover rich text from the migrated data
that is inaccessible because of format differences.
Syntax
req_migrate_richtext -u=user-id] [-p=
[-u= -p=password| -pf=password-file] [-g=
-g=group]
-h]
[-h
-h
Arguments
-u
Specifies the user ID.
This is generally infodba or another user with administration privileges. If
this argument is used without a value, the operating system user name is used.
Note
If Security Services single sign-on (SSO) is enabled for your server, the
-u and -p arguments are authenticated externally through SSO rather than
being authenticated against the Teamcenter database. If you do not supply
these arguments, the utility attempts to join an existing SSO session.
If no session is found, you are prompted to enter a user ID and password.
-p
Specifies the password.
If used without a value, the system assumes a null value.
If this argument is not used, the system assumes the user-ID value to be
the password.
This argument is mutually exclusive with the -pf argument.
-pf
Specifies the password file. If used without a value, the system assumes a
null value. If this argument is not used, the system assumes the user-ID
value to be the password.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
-g
Specifies the group associated with the user.
If used without a value, the user's default group is assumed.
-h
Displays help for this utility.
Environment
As specified in Manually configuring your environment for Teamcenter utilities.
Files
As specified in Log files produced by Teamcenter.
Restrictions
To use this utility, you must be a user with system administration privileges
or be granted authorization by a user with system administration privileges.