Microsoft KB Archive/327950

= The &quot;Error - Bad option specified COMPRESSION&quot; Message Occurs with SNACFG =

Article ID: 327950

Article Last Modified on 2/22/2007

-

APPLIES TO


 * Microsoft SNA Server 4.0
 * Microsoft Host Integration Server 2000 Standard Edition

-



This article was previously published under Q327950



SYMPTOMS
When you try to merge an SNA text configuration file into a generic Com.cfg file, you receive the following error message:

&quot;Error - Bad option specified COMPRESSION&quot;



CAUSE
The problem occurs because SNA Server Manager adds an incorrect compression option when a Downstream logical unit (LU) is created.

The following is an example of a Downstream LU configuration from a Com.cfg file printed to text:

LUD T14T6178 /ADD /LUNUMBER:178 /CONNECTION:T14T2967 /COMMENT:&quot;&quot; /COMPRESSION:No /WORKSTATIONSECURE:No

NOTE: The /COMPRESSION:No option causes the &quot;Bad Compression&quot; error and prevents the SNACFG utility from importing a text version of a configuration file (Com.cfg) back into a generic Com.cfg file.



WORKAROUND
To work around the problem, you can use one of the following methods:
 * Remove /COMPRESSION:No from each Downstream LU in the text SNA configuration file.
 * Use Snacfg.exe to create the Downstream LU.
 * In Host Integration Server 2000, use WMI scripting to create the Downstream LU.

Remove /COMPRESSION:No
Remove the whole &quot;COMPRESSION&quot; line (/COMPRESSION:No) from each Downstream LU in the text SNA configuration file.

LUD T14T6178 /ADD /LUNUMBER:178 /CONNECTION:T14T2967 /COMMENT:&quot;&quot; /COMPRESSION:No Remove this line from each Downstream LU /WORKSTATIONSECURE:No

Use Snacfg.exe to Create the Downstream LU
In either SNA Server 4.0 or Host Integration Server 2000, use the SNACFG utility, Snacfg.exe, to create the Downstream LU.

Command Syntax
SNACFG LUD /LIST SNACFG LUD ludname SNACFG LUD ludname /PRINT SNACFG LUD ludname /ADD [options] SNACFG LUD ludname [options] SNACFG LUD ludname /DELETE

Available Options
/CONNECTION:text /LUNUMBER:value /POOL:text /COMMENT:&quot;comment&quot;

Sample command
SNACFG #COM.CFG LUD DSLU /add /CONNECTON:MYCONN /LUNUMBER:05

Use WMI Scripting to Create the Downstream LU
In Host Integration Server 2000, use WMI scripting to create the Downstream LU.

NOTE: Modify the script values below  to match your configuration.

Sample Script
' Begin VBScript source code Set WmiLocator = CreateObject(&quot;WbemScripting.SWBemLocator&quot;) Set WmiNameSpace = WmiLocator.ConnectServer(&quot;&quot;,&quot;root\MicrosoftHis&quot;) Set WmiObj = WmiNameSpace.Get(&quot;MsSna_LuDown&quot;) WmiObj.Security_.impersonationLevel = 3 Set NewWmiObj = WmiObj.SpawnInstance_

NewWmiObj.Comment = &quot;Added by WMI Script&quot; NewWmiObj.Compression = FALSE NewWmiObj.ConnectionName = &quot;PRTDEM&quot; NewWmiObj.Name = &quot;DSLU003&quot; NewWmiObj.Number = 3 NewWmiObj.PoolName = &quot;&quot; NewWmiObj.UserWksSecure = FALSE

NewWmiObj.Put_ wbemFlagReturnWhenComplete

WScript.Echo &quot;Done&quot; ' End VBScript source code



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section of this article. 

MORE INFORMATION
This problem occurs only when you export the configuration information from the Com.cfg file (that contains a Downstream LU created from SNA Server Manager) into a text file, and then you try to import the text SNA configuration back into a generic Com.cfg.

Steps to Reproduce the Behavior
 Create a demo link connection.</li> <li>Create a Downstream LU on that connection, save Config, and then exit SNA Server Manager.</li> <li>At the \system\config command prompt, run the following command:

SNACFG #com.cfg /print>c.txt

</li> <li>Rename the current Com.cfg file as Com.bak.</li> <li>Copy the generic Com.cfg file from the SNA Server CD-ROM to the \system\config folder.</li> <li>Run the SNACFG #com.cfg @c.txt /v command. You receive the &quot;Error - Bad option specified COMPRESSION&quot; message.</li></ol>

Additional query words: HIS 2000

Keywords: kbbug kbpending KB327950

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.