3.30.2006

DNS/Wins/DHCP links and articles

How to enable or disable DNS updates in Windows 2000 and in Windows Server 2003 - http://support.microsoft.com/kb/246804  (Good KB on how DNS updates are performed)


How to configure DNS dynamic updates in Windows Server 2003 - http://support.microsoft.com/kb/816592/
When one of these events triggers a DNS update, the DHCP Client service, not the DNS Client service, sends updates. If a change to the IP address information occurs because of DHCP, corresponding updates in DNS are performed to synchronize name-to-address mappings for the computer. The DHCP Client service performs this function for all network connections on the system. This includes connections that are not configured to use DHCP.



If you use multiple Windows Server 2003-based DHCP servers on your network and if you configure your zones to enable secure dynamic updates only, use the Active Directory Users and Computers snap-in to add your DHCP server computers to the built-in DnsUpdateProxy group. When you do this, all your DHCP servers have the secure rights to perform proxy updates for any one of your DHCP clients. For more information, see the "Using DNS servers with DHCP" topic or the "Manage groups" topic in Windows Server 2003 Help.


Netbios name resolution requirements of exchange server 2003 - http://www.computerperformance.co.uk/w2k3/services/WINS_exchange.htm

WINS in Windows 2003 - http://www.computerperformance.co.uk/w2k3/services/WINS_Home.htm

WINS/DNS Integration - http://www.computerperformance.co.uk/w2k3/services/WINS_DNS.htm

WINS replication - http://www.computerperformance.co.uk/w2k3/services/WINS_Replication.htm

WINS troubleshooting - http://www.computerperformance.co.uk/w2k3/services/WINS_Troubleshooting.htm

DNS preferred order - http://support.microsoft.com/kb/286834

How to migrate a WINS Database from Windows 2000-based WINS server to a Windows 2003-based WINS server - http://support.microsoft.com/kb/875419
How to view and transfer FSMO roles in Windows Server 2003 - http://support.microsoft.com/kb/324801
How to move a DHCP database from a computer that is running Windows NT Server 4.0, Windows 2000, or Windows Server 2003 to a computer that is running Windows Server 2003 - http://support.microsoft.com/kb/325473
How to upgrade Windows 2000 domain controllers to Windows Server 2003 - http://support.microsoft.com/kb/325379

videos: Managing Windows Server 2003 Best Practices (FSMO,DHCP,DNS,WINS) -  http://www.microsoft.com/technet/community/events/windows2003srv/tnt1-106.mspx

dhcp bp - http://technet2.microsoft.com/WindowsServer/en/Library/75cd0e1f-f464-40ea-ac88-2060e6769f331033.mspx
wins bp - http://technet2.microsoft.com/WindowsServer/en/Library/ed9beba0-f998-47d2-8137-a2fc52886ed71033.mspx

dsa.msc /server=ipaddress


3.29.2006

Ascii chart with the control codes/characters

ASCII table with control chars:
http://www.commonsoftinc.com/Babylon_Cpp/Documentation/Res/KASCIICharTab
le.htm

shell file name completion

On some Linux distros-
To have the shell complete the name using the Esc, Esc keystrokes:

set -o vi-esccomplete

Find unix (HP-UX) memory hog

Finding HP memory hog:

UNIX95= ps -xeo 'vsz pid args' |sort -nr|more

Curl and proxysg

Getting past proxysg via curl:

curl -u : --ntlm --location-trusted -b cookie.jar -c cookie.jar
http://www.bonhamconsulting.com

with curlrc in place:  (--location disables the -L in the curlrc file)
curl -u : --ntlm --location --location-trusted -b cookie.jar -c cookie.jar
http://www.bonhamconsulting.com

Listing HP-UX kernel parameters

HP Kernel parameters:

listing:
sysdef

kmtune
kmtune -l
kmtune -l -q {parameter}
ex: kmtune -l -q dbc_max_pct or just: kmtune -q dbc_max_pct

How to monitor a terminal session

shadow/view/watch a telnet session:

on the viewer's telnet session: chmod 666 /dev/pts/xx

on the "watched" session side, do: program_name | tee /dev/pts/xx

or just: script /dev/pts/xx

Test smtp using telnet

telnet smtp_server 25

RSET   (does a reset, if you happen to screw up one of the lines)

HELO mymail.me.local
MAIL FROM:<fromme@me.local>
RCPT TO:<toyou@you.local>
data

From: fromme@me.local
To: toyou@you.local
Date: Tue, 02 Aug 2005 12:24:31 -0500
Subject: this is a test

This is a manual smtp mailing test.

.


Note the single period on a line by itself at the end of the message.

View full email message source in Outlook 2003

View full email message source, not just headers in Outlook 2003:

http://www.slipstick.com/mail1/viewheaders.htm

HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Options\Mail\SaveAllMIMENotJustHeaders = 1 (Reg_Dword)

3.28.2006

Citrix Metaframe client hangs

If the Citrix Metaframe client hangs after it says "connection established", "negotiating capabilities", then upgrade to version 9 or higher.  I think there are some issues running version 8.00.24737 as a "regular" or restricted user and not an administrator or power user.

STP on TruCluster NICS

Any NICs in a Tru64 TruCluster environment, whether they be the cluster interconnect or the regular public lan NICs, should have spanning tree protocol (STP) turned off on the port they are connected to. See the TruCluster Server Cluster Administration guide (part number: AA-RHGYE-TE

On a Cisco switch, in enable mode:

config t
interface FastEthernet0/1
no spanning-tree portfast

Don't forget to save the running config to nvram.

Remove the drunk monkey logo

Has this ever happened to you?:  one day you reboot your Windows 2000 machine to find that the default blue background at the control-alt-del screen has been changed to a white background with 3 drunk monkeys at the bottom of the screen.  For some odd reason this also coincides with departure of a former employee.  Curious huh?
 
Anyway to get rid of the monkeys, look in
HKEY_USERS\.Default\Control Panel\Colors
 
copy the value of Background_old to Background
 
in
HKEY_USERS\.Default\Control Panel\Desktop
 
copy the value of Wallpaper_old to Wallpaper
 
You can also get rid of the C:\winnt\drunk_logo.bmp file.

Spam map

Worldwide spam map:  http://www.trustedsource.org
also seems to include info specific domains.

3.27.2006

Get AlphaServer SRM console version

To get the SRM console version (firmware) on an Alpha Server via a shell:
consvar -g version
Output will be something like this:
version = V7.0-3 Jun 16 2005 14:53:11
 
Get some more detailed info with the first two lines of output:
# consvar -v -l
Firmware Rev: 7.0-3
system fam:38  cpu:8  smm:1978

 
get the PALcode similarly:
consvar -g pal
 
Output will be something like this:
pal = OpenVMS PALcode V1.98-43, Tru64 UNIX PALcode V1.92-33

Remove formatting from man pages

To remove the formatting from man pages so that you can redirect them to text and view in vi or another editor you can create a shell alias and associated script:
 
alias mantext='~/bin/mantext.ksh'
 
mantext.ksh:
man $1 | sed -e 's/.//g'
 
Now use mantext instead of man when redirecting a man page to a file.
 

3.26.2006

transition from batch to unix shell scripts

Converting DOS Batch Files to Shell Scripts - http://www.tldp.org/LDP/abs/html/dosbatch.html
Beginner's Guide to Unix Shell Programming - http://www-rnks.informatik.tu-cottbus.de/de/staff/mm/docs/BeginnersGuideToUnixShellProgramming.html

cron deficiencies

I was told to make a process run the first day of every month, but cron doesn't have the "smarts" to do it.  I found the following solution to be adequate:

From: http://www.darklab.net/resources/hpux-mailinglist/0715.html

DO SOMETHING ON THE LAST DAY OF A MONTH
 
Unfortunately, cron does not give us a simple way to say
'run this on the last day of month'. Fiddling with the
different length months, leap years, y2k bugs and so on is
messy. Here's a simple solution that gives all the dirty
work to some well tested utility. The idea is to check whether
*tomorrow* is the first day of a month.
 
Solution 1 (using date, change MET to your local time zone)
 
#!/bin/sh
if test `TZ=MET-24 date +%d` = 1; then
   # today is the last day of month
fi
 
You can call this script from cron, say with a crontab of
4 2 28-31 * * /path/to/your/script