Tuesday, October 19, 2010

VOB Creation Error Handling

Users with ClearCase Administrator role sometimes still can not create VOB successfully although it have RW access control right to storage locations. Below alert message will prompt up

Creating VOB:
VOB Creation Wizard:Error:Failed to record hostname "xxxx" in storage directory "xxxxxx".Check the root or the ClearCase administrators group has permission to write to this directory.
VOB Creation Wizard:Error:Unable to create versioned object base "xxxxxx"
In this situation, user should check access right of the log on user of system service "Atrial Location Broker" and make sure the user has also RW right to the storage location. Add that user to administrators group on the machine which host the storage location if no.


PS, for any exception during cc operations, users can check Log Browser which logs the detailed error messages for further investigation.

Tuesday, May 4, 2010

CM API Usage Guide

CM API Usage Guide
CM API is introduced in Rational 7.1. It has implement java interface between JAVA and CC/CQ applications. Using CM API, java client can do task like,
1. populate users in cq database
2. submit, update, delete records in cq database
3. check out/in a element version
4. others like perl, vbs do in privious version.
 
Here is brief introducton of CM API.
 
 

Friday, April 23, 2010

How to Set Dynamic Parameter of Query From External Script

How to Set Dynamic Parameter of Query From External Script
 
Below is the perl code
 
##############################################
my $workSpace=$userSession->GetWorkSpace(); #$userSession should be created before

 #Personal Queries/Dymic is a query with 2 dynamic fields state and submit date
 my $queryDef=$workSpace->GetQueryDef("Personal Queries/Dymic");
 my $rstSet=$userSession->BuildResultSet($queryDef);

   # set state value list
   $rstSet->AddParamValue(1,"Submitted");
   $rstSet->AddParamValue(1,"Assigned");

   # first set compare operator for the submit date. 9 means "between"
   $rstSet->SetParamComparisonOperator(2,9);
   # then set 2 time value for between
   $rstSet->AddParamValue(2,"2010-04-23 00:00:00");
   $rstSet->AddParamValue(2,"2010-04-23 23:59:59")
   $rstSet->Execute;
   print $rstSet->GetSQL();
##############################################
 
The output likes this,
select distinct T1.dbid,T1.id from new_defect T1,statedef T2 where T1.state = T2.id and (T1.dbid  0 and ((T2.name in ('Submitted','Assigned') and T1.submit_date between {ts '2010-04-21 08:00:00'} and  {ts '2010-04-23 08:00:00'})))

Thursday, April 22, 2010

How to share folders under Linux Ubuntu

Here is the detail steps to setup
 

Best Regards
Oliver Zheng
Tel: 86-756-3398810

 

Friday, February 26, 2010

How to Resolve Data Incosistent in ClearQuest and ClearCase

How to Resolve Data Incosistent in ClearQuest and ClearCase
 
After ClearQuest and ClearCase Integration, users may happend to below error,
 
   Could not perform requested operation: a UCM/ClearQuest data
   inconsistency may exists:
   "activityxxxxx.xxxxx" was expected to be linked to a ClearQuest record, but is not.
 
 
What is the cause of the problem,
This occurs when there are multiple ClearQuest user databases with the same name as the one that is UCM enabled.
 
 
How to diagnosing the problem,
Run below command,
 
cleartool checkvob -ucm -force -crm_only project:<UCM_ENABLED_CC_PROJECT_NAME>@\PVOB_NAME
Note: this command will list all problem cc activities under ucm project
 
How to Resolving the problem,
Determine which connection to be removed
Run below 2 commands in order
 
cleartool checkvob -ucm -fix -crm_dbname <CLEARQUEST_USERDATABASE> -project project:<UCM_ENABLED_CC_PROJECT_NAME>
Note: this command will find a most likely record(for example,headline is same) in <CLEARQUEST_USERDATABASE> and match its id into cc activity
 
cleartool checkvob -ucm -fix -force -crm_only project:<UCM_ENABLED_CC_PROJECT_NAME>@\PVOB_NAME
Note: this command will create UCMActivities in CQ db if no matched cq records are found.

Putty Usage Guide

Putty Usage Guide  -- very detailed guide from 柴锋
 
 

Wednesday, February 24, 2010

Setup Summary of a Ubuntu Linux machine

Setup Summary of a Ubuntu Linux machine

 

We plan to setup a Linux machine to run some jobs and also it can provides us a environment to practice in Linux. So we decide to use Ubuntu 9.10.

 

The whole installation was smooth since it really simple. Just insert Installation disk into CD-ROW and reboot the machine to start installation.

 

This post is to log the issues when I setup the whole machine and the way I solve those issues.

 

How to remotely control Ubuntu from windows desktop ? 

a. Install TightVNC Viewer into windows client. You can download the file here,

http://sourceforge.net/projects/vnc-tight/

 

b. Configure Ubuntu to allow user control the machine remotely.

Login Ubuntu locally with GUI desktop.

Click System->Preferences->Remote Deksop

In the Remote Desktop Preferences, click ‘Allow other users to view your desktop’ and ‘Allow other users to ontrol your desktop’ and click Close.

 

c. In windows machine, open TightVNC Viewer and input the Ubuntu machine name/IP address into VNC server and click Connect button.

 

So far,  you can see the Ubuntu desktop in the viewer. If some security settings are enabled in Remote Desktop Preferences, you may input the password when connect to Ubuntu via TightVNC Viewer.

 

Notes: if you can not login Ubuntu via viewer, you need to check if the Ubuntu has enable the network.

 

How to setup FTP server in Ubuntu

I googled this topic and find a command to do this,

 sudo apt-get update

 sudo apt-get install vsftpd

But with back luck, I got below erros,

407 Proxy Authentication Required (The ISA Server requires authorization to fullfill the request.Access t the Web proxy service is denied). I still do not resolve this issue by now although I tried many many ways. So I suggest you to skip this issue to install the package directly and let it be. It saves you lots of time especially if you are newbie like me.

 

a. Check your machine has valid IP address via command: ifconfig. I can get the IP address once I finish installation.

 

b. Configure FireFox to access internet web pages. (in most cases, you need to input proxy server information as in Windows platform)

 

 

c. Login Ubuntu packages website and download vsftpd deb package. Do not use google this time, just this website and it is almost enough.

http://packages.ubuntu.com/

 

d. Use below command to install the package

   sudo dpkg –i vsftpd-xxx-xxx.deb

 

e. Then configure the ftp. You can find the configure file under /etc/vsftpd.conf. Here is the detail for your refernece,

http://vsftpd.beasts.org/vsftpd_conf.html

 

f. And start the services with root. The ftp service will start once Ubuntu reboot as a service.

/etc/init.d/vsftpd start|stop|restart|reload|status

 

Hah. You can ftp from your windows to Ubuntu if all go smooth.