I am not sure how dns works exactly. We have been informed that it doesn't use the hosts file. We also believe that WinCli (ncr) middleware, will not work without a hosts file. Therefore, a catch 22.
Hi,
WinCLI use GetHostByName("aliascop1" where alias is the name you give in the login string.
.logon alias/user,password;
How GetHostByName is implemented by Windows is a mystery.
I think it first looks in LMHOSTS, then in HOSTS, then it sends a message to the DNS server on the system to see if it can resolve it. That host may inturn forward it to another DNS server. Or maybe its the other way around., DNS then HOSTS then LMHOSTS.
because we are relying on Windows to handle this resolution if the system is confugured for DNS and there is no DNS server available ( lets say you are traveling and your laptop isn't connected to the network anymore ), GetHostByName can take upwards of 5 minutes to time out
the request sent to the Server. This makes it appear like Logon is taking a long time.
This Timeout is a Windows Network tuneable somewhere in the registry.
1) I'm fairly certain that DNS uses the HOSTS file (either on your pc or on a dns server). WINS resolution uses the LMHOSTS - I haven't got my networking books to hand but I think you'll find that's how it works.
2) speeding up wincli logon can be done by adding one line per Teradata system to your autoexec.bat file (it's true, DOS is still alive and kicking !). The line tells the WinCli s/w how many i/p adresses there are for each system. Assume that you've got a system called TDLIVE which has three i/p addresses, add the following line to your autoexec.bat file:
set tdlive=3
On one of our internal systems this took our logon time from 20-25 seconds down to 2-3.
3) I've never tried the hosts entry with the ".company.com" entry on the end. What does this do ?
To remove the requirement that you add the <hostname>cop<n> aliases to your hosts file you can add them to the dns directly.
It can be a big deal visiting many workstations just to update hosts files, so much better to add the cop IP addresses to your site's DNS database.
Contact the administrator of your network/DNS to discuss how this can be done.
Of course this does nothing to resolve the issue of setting the environment variable for your host to the number of COPs available...
Some examples:
System name is mytera and has PEs running on 10.1.1.10 thru 10.1.1.13
Domain name is needlenose.com
Add the following to your hosts file or DNS database
10.1.1.10 myteracop1.needlenose.com
10.1.1.11 myteracop2.needlenose.com
10.1.1.12 myteracop3.needlenose.com
10.1.1.13 myteracop4.needlenose.com
You may omit the needlenose.com if you do not usually fully qualify internal system names and you are using the hosts file.
And to speed up CLI logons set an environment variable MYTERA=4 (since 4 COPs are available). You can use a batch file to do this, but I prefer setting a SYSTEM variable using the Environment Variables dialog accessible from the System control panel applet on NT/W2K
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.