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.

 

 

 

 

 

Monday, February 22, 2010

Send Mail via remote SMTP Server on Ubuntu

Sometimes we need to send out mail from linux but do not want to setup a mail server on it. Below is a simple way to implement this function with a existing smtp server.
 
a. install package nail with below command
   apt-get install nail
   or you can search the nail package in http://packages.ubuntu.com
 
b. edit /etc/nail.rc and add below lines in the end of the file
    set smtp=the_existing_smtp_server
 
c. use below command to send out mail
    nail -s your_subject -a your_attachment to_add1 to_add2  < msg_content_file