Tips for Building SMS Test Servers

by Dana Daugherty

Sometimes, in order for you to recreate a problem in a test lab, the environment must mirror your production servers. If you've read many SMS Q articles from Microsoft you will get my drift. Hopefully, this article will help you to better accomplish your testing goals.

Sometimes, in order for you to recreate a problem in a test lab, the environment must mirror your production servers. Hopefully, this article from Dana Daugherty will help you to better accomplish your testing goals.

Here is an example; let's say we are trying to determine how our production environment is treating inventory from traveling laptop users. By traveling I mean to other SMS sites within one organization. Let's also say I have applied hot fix Q281107 to my production machines. (If Q281107 isn't applied to the test environment you're going to see a world of difference.) Production servers will insert inventory very nicely. Test servers will rebel (Check the link for more details about the Q; I also have a couple of articles on this site about it.).

In order to really see how a SMS server is going to react in a given situation you must get the test environment as close as possible to the production machines. There are a couple of ways to approach this. You can attempt to backup the production server then restore it to the test server. Or you can build the test server, paying close attention to each detail. Below I'll list a few tips for each method.

Restore the Production Server to a Test Box

While this method is a bit tricky, it will provide a sure method to take a snapshot of a server in production, move it to test and start whacking on it. If your server is going to be placed into a domain with a name other than the production domain you've got to do some "hacking". Below are some notes to help you with this.

First, you will have to deal with a security issue. Before backing up the Site Server you will want to trust the test domain, create an account in the test domain with Full SMS permissions. Then grant all permissions to this account on the Server you are going to back up. You can now close the trust.

If you use backup software like ArcServe or Backup Exec, disable all SMS and SQL services first. Perform the backup. Restore the server to the test box, be sure to include the registry and overwrite files with the same name.

Here are the registry locations and accounts you will need to edit:

  1. These registry entries must be changed to reflect the correct Domain:
    1. HKLM\Software\Microsoft\MSSQLServer\MSSQLServer  DefaultDomain = "Domain123"
    2. HKLM\Software\Microsoft\SMS  ServerAccount = "Domain123\SMSServer_sitecode
    3. HKLM\Software\Microsoft\SMS\Components\NT_LOGON_SERVE_MANAGER\DOMAINS\ Add a key with the name of the new domain, Remove value for Server List
    4. HKLM\Software\Microsoft\SMS\Identification Domain = "Domain123"
    5. HKLM\Software\Microsoft\SMS\Identification Site Server Domain = "Domain123"
    6. HKLM\System\CurrentControlSet\Services\SMS_Executive ObjectName = "Domain123\SMSService"
    7. HKLM\System\CurrentControlSet\Services\SMS_Site_Backup ObjectName = "Domain123\SMSService"
    8. HKLM\System\CurrentControlSet\Services\SMS_Site_Component_Maner ObjectName = "Domain123\SMSService"
  2. Accounts
    1. SMSServer_sitecode no configuration changes should be necessary for this account
    2. SMSService had to remove and re-add the password in NT service manager

Build a Server from Scratch

This approach can give you the same results. It's tedious in a different way. It will require you to go through each configuration on the production server and apply it to the test server. Applications, including service packs and hot fixes, need to be applied in the same order as the production server. Once the box is a twin of your production server be sure to disable the SMS and SQL services and get a backup. This method will be much easier to rebuild the test server after a testing scenario is complete, but you will have to apply any configuration changes and/or software updates to your backup.

It may seem like "overkill" for you to spend so much time on your test server. Using one of these approaches will help you to deliver a quality product. You will have the full story on a SP or hot fix before applying it. You will also be more likely to find solutions to SMS problems you are having in your enterprise.

This article was originally published on Oct 15, 2001
Page 1 of 1

Thanks for your registration, follow us on our social networks to keep up-to-date