Export WorkSpace in TEPS

1.
Find in DB

select * from  kfwworkspace where NAME like 'M_%'

2.

Export / Import

#tacmd tepslogin -s 127.0.0.1 -u  sysadmin
#tacmd exportworkspaces -x tc_123.xml -w tc123 -q
#tacmd importworkspaces -x tc_123.xml -q

Script for export

#!/bin/bash

tacmd='/opt/IBM/ITM/bin/tacmd'

$tacmd tepslogin  -s 127.0.0.1 -u sysadmin -p mypass
pr="TOMCAT" ;    $tacmd exportworkspaces -x "$pr".xml -w "$pr"_FCOD -q -f
pr="MQ" ;    $tacmd exportworkspaces -x "$pr".xml -w "$pr"_FCOD -q -f
pr="ORACLE" ;    $tacmd exportworkspaces -x "$pr".xml -w "$pr"_FCOD -q -f

echo -e "\n\nExport NAVIGATOR\n\n";
export TACMD_JVM_MAX_MEMORY=1024;
$tacmd  exportnavigator -x NAVIGATOR_CORE.xml -n CORE -f
$tacmd tepslogout

3.

Recovery.

Create a new workspace. Call it what you will, is different from the default and save.
Export.
In the file, change the contents (note tag), but that would be a new workspace got in return for a new, temporary, it is necessary to leave the cap

  <workspaces>
    <workspace admin_authored="SYSADMIN" affinity="00000000000000800000000000000000000000yw073" affinity_filter="00000000000000800000000000000000000000yw073" application_type="kum" default="false" editable="true" link_target="false" name="123" object_id="1306f60aac3" object_type="REPORT" product_provided="false" version="1" ws_group="zkum.COD_MONMQ00">
   <contexts>

everything else can be dragged from the file to workspace

4.

Find in deleting the workspace

From TEP DB

//select * from  kfwworkspace where NAME like '%MQ_f%'
//delete from kfwworkspace where NAME like '%MQ_fc%'
This entry was posted in PC Life, Tivoli and tagged . Bookmark the permalink.

Leave a Reply