Question: Below is the my code. 
Is there someting wrong or missing in my code?

```
using (Process p = new Process())
{
    string strCmdText = string.Empty;
    p.StartInfo.FileName = "CMD.exe";
    p.StartInfo.RedirectStandardOutput = true;
    p.StartInfo.UseShellExecute = false;
    p.StartInfo.Arguments = "tracetcp vrtpmkap2001:445";
    p.Start();
    string q = string.Empty;
    while (!p.HasExited)
    {
        q += p.StandardOutput.ReadToEnd();
    }
    string r = q.ToString();
}

```

I can't get the output of the tracetcp.

Answer: 
Since LKAD is not telling you "served by..." these licenses are in the local license files. On Windows, those files are:
C:\Program Files (x86)\IBM\RationalRLKS\common\rational\_server\_perm.dat
C:\Program Files (x86)\IBM\RationalRLKS\common\rational\_server\_temp.dat

The licenses you import will overwrite ONE of those files depending on the type of licenses you import. 

The simplest thing to do is to go into the files in question and delete the INCREMENT blocks you want to get rid of. They're just text files.

An increment block looks like this.

```
INCREMENT ClearCase rational 1.00000 15-jan-2015 10 {redacted} \
    VENDOR_STRING="0|Floating|0| ClearCase:1.0" DUP_GROUP=U \
    vendor_info="0|IBM Rational ClearCase Floating License Key \
    (FLEXlm license manager)|0" ISSUED=02-jun-2014 NOTICE="Sales \
    Order Number: {redacted}" ck={redacted} SN={redacted}

```

You need to get rid of the whole block, and not just the INCREMENT line.
I remember in one instance having to uninstall and reinstall the license manager, in order to properly reset the keys.

* First try and [configure your license server](http://pic.dhe.ibm.com/infocenter/cchelp/v7r1m2/index.jsp?topic=%2Fcom.ibm.rational.clearcase.cc_ms_install.doc%2Ftopics%2Fc_config_licensing.htm), by managing the list of license servers.
* Try and reconfigure the [Rational License Key Server](http://pic.dhe.ibm.com/infocenter/rational/v0r0m0/index.jsp?topic=/com.ibm.rational.license.doc/topics/t_setup_rcl.html).  

Menu `Settings => Client/Server configuration`

![setting](https://i.stack.imgur.com/nevfa.png)

* Make sure you have [properly updated the license file](http://pic.dhe.ibm.com/infocenter/cchelp/v7r1m2/index.jsp?topic=%2Fcom.ibm.rational.licensing.doc%2Ftopics%2Ft_update_lic_file.htm)

And it can depend on your version of ClearCase/ClearQuest, and their associated license manager.

For 8+, it uses the IBM Rational® License Key Administrator (LKAD), which provides an interface to IBM Rational Common Licensing (powered by Flexera software).