Use this utility to:
Mass publish objects to one or more Object Directory Services (ODS) sites.
Mass unpublish objects from one or more ODS sites.
Publish or unpublish an entire assembly.
List ODS sites currently defined in the local database and authorized for publication.
Send objects to other sites.
Delete obsolete publication records at the ODS.
Check current status of authorized publication sites.
List all the ODS sites to which an object is published.
Data can be input to this utility in the following forms:
Input file
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 options, 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.
Entries in parentheses are accepted abbreviations for arguments. |
The objects to send are determined by the –item_id, –folder or –filename arguments.
To be used only if the master object has been deleted but publication records still exist at the ODS site. |
To be used only as a last resort after attempting to delete export records using the –verify option of the data_sync utility. |
The list of relation types to be included is determined by the IMAN_relation_export preference. The –exclude option overrides the preference setting. For more information, see the Teamcenter Engineering Configuration Guide. |
If not specified, this argument defaults to off.
If no revision selector is specified, the default selector is all_revisions. |
Identifies the item revisions to send. Also used as the revision rule for identifying components when processing assemblies. When used with the –include_bom option while publishing or unpublishing, it determines which revisions' BVR to follow in traversing the assembly tree. The valid revision selectors are as follows:
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.
Required login information is omitted from the following examples. |
To send a list of items specified in a text file to two sites:
data_share -f=send -filename=my_item_list.txt -site=Site1 -site=Site2
To transfer ownership of a given item:
data_share -f=send -transfer -item_id=item123 -site=Site1
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 sites using the default revision rule latest revision:
data_share -f=unpublish -item_id=Item1 -site=Ods1 -site=Ods2 -include_bom
To delete a publication record in the local database:
Use this only if the master object has been deleted but the publication record still exists. |
data_share -f=delete_pubrec -item_id=ObsoleteItem1
To list the authorized ODS sites:
data_share -f=list_ods
To check availability of the authorized ODS sites:
data_share -f=check_ods
To get publication information about a list of objects in a folder:
data_share -f=list_pub_info -folder=myFolder
To send an item to a specific remote user and group:
data_share -f=send -item_id=xyz -site=Site1 -owning_user=joe -owning_group=engg
When publishing thousands of items and you get errors after publishing several hundreds or even thousands of items, reduce the batch size:
data_share -f=publish -item_id=A* -site=Site1 -batch_size=200
To publish an Engineering Change object and all its associated change objects:
data_share -f=publish -item_id=CR0001 -site=Ods1 -include_bom 0-include_bc -include_supercedures
To register an item ID with the central item ID registry:
data_share -f=register -item_id=myItem
To find duplicate item IDs at another site:
data_share -f=find_duplicates -item_id=00* -site=Site1
-from Siemens reference guide