Microsoft KB Archive/265208

= Determining LU Pool usage across servers =

Article ID: 265208

Article Last Modified on 12/4/2007

-

APPLIES TO


 * Microsoft SNA Server 4.0
 * Microsoft SNA Server 4.0 Service Pack 1
 * Microsoft SNA Server 4.0 Service Pack 2
 * Microsoft SNA Server 4.0 Service Pack 3
 * Microsoft SNA Server 4.0 Service Pack 4
 * Microsoft Host Integration Server 2000 Standard Edition
 * Microsoft Host Integration Server 2000 Service Pack 1
 * Microsoft Host Integration Server 2000 Standard Edition
 * Microsoft Host Integration Server 2004 Standard Edition

-



This article was previously published under Q265208



SUMMARY
SNA Server and Host Integration Server allow administrators to define 3270 and/or LUA Pools that span LUs owned by more than one server in the subdomain. An LU Pool can then be assigned to one or more groups of users for host access. Although the administrator can determine the number of Pooled LUs that are in use by using the SNA Manager or Microsoft Management Console (MMC) snap-in tool (on a server-by-server basis), there is no automated facility for monitoring the aggregate number of in-use LUs across all servers that support the LU Pool.

However, Host Integration Server provides a programmable interface to access server configuration and status information through the SNA WMI Provider. See the &quot;More Information&quot; section of this article for a WMI script that can be used to access LU Pool usage information.



MORE INFORMATION
Microsoft has received customer requests to provide an automated means of determining the percentage of in-use Pooled LUs to make it easier to determine when additional 3270 or LUA LUs are needed for an LU Pool. This feature is under consideration for a future version of Host Integration Server. In the mean time, Host Integration Server does provide a WMI interface to access LU Pool usage information. The following WMI script demonstrates how to do this for a specific LU Pool name on a specific SNA Server:

strPoolTargeted  = &quot;LUPOOL&quot; ' this next should be the name of ONE of the SNA Servers in the subdomain strDomainComputer = &quot;SnaServer&quot;

GrandTotalOfActiveLU = 0

Set WmiLocator = CreateObject(&quot;WbemScripting.SWbemLocator&quot;) Set WmiNamespaceDomain = WmiLocator.ConnectServer(strDomainComputer,&quot;root\MicrosoftHIS&quot;)

Set objServersInThisPool = WmiNamespaceDomain.ExecQuery(&quot;ASSOCIATORS OF {MsSna_Pool.Name='&quot; & strPoolTargeted & &quot;'} where ResultClass=MsSna_Server&quot;)

Set objLuInThisPool = WmiNamespaceDomain.ExecQuery(&quot;ASSOCIATORS OF {MsSna_Pool.Name='&quot; & strPoolTargeted & &quot;'} where ResultClass=MsSna_Lu3270&quot;)

for each xServer in objServersInThisPool '   ' Look at all InSession or SSCP LUs on Remote SnaStatus namespace Set WmiNameSpaceStatusBox = WmiLocator.ConnectServer(xServer.Name,&quot;root\MicrosoftHIS&quot;) Set objLUActives = WmiNameSpaceStatusBox.ExecQuery(&quot;Select Name from MsSnaStatus_Lu3270 where StatusText='InSession' or StatusText='SSCP'&quot; ) ' Verify that the LU is in the POOL and belong to the SERVER for each xLUActive in objLUActives for each xLuInPool in objLuInThisPool if xLuInPool.Name = xLUActive.Name then GrandTotalOfActiveLU = GrandTotalOfActiveLU + 1 exit for end if       next next next

Wscript.Echo &quot;Total active LU &quot;& GrandTotalOfActiveLU

Keywords: KB265208

-

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

© Microsoft Corporation. All rights reserved.