Welcome to Symantec Connect.  Log in or register to participate.

build colletions based on sites

daulphin's picture

Hi, new to altiris and had a question. I'm currently building my collections for our variuos physical sites manually and based on IP address and am realizing that I'm basically duplicating work.

I've been digging around but haven't found any answer to the following.

Is there a way to leverage the sites you define in Site Maintenance for building your colletions? So if I'm building a collection for 10.10.XX.XX and 10.11.XX.XX, I would like to just build it from what I already defined under Sites such as "Site A", rather then have to re-enter all that ip information again. I would imagine that would also make maintenance easier in the long run.

jgo's picture

Microsoft AD import

If you have sites defined in AD run the Import tool to import collections of computers by site.

Navigate under the configuration tab --> Server Settings --> Notification Server Infrastructure --> Microsoft Active Direct Import.

Make sure to set up the computer and site import. To look at the collections created...

Navigate to: Resource Tab --> Collections --> Directory Collections --> "Domain name" --> Sites

Cheers,
John Golembiewski
Midwest Practice Principal
ITS Partners
Jgo@itsdelivers

John Golembiewski
Midwest Practice Principal
ITS Partners
Jgo@itsdelivers

haim96's picture

be careful with IP filter in collections

when i build collection with IP filters i used
"IP like 10.12.X.X"

and i get all IPs 10.12.X.X , X.10.12.X and X.X.10.12

i'm not sure why it's happened but i had to use some more filters to fix it.
as already suggested, using AD connector is a better option.

SonicGT's picture

Query Machines using sites - Domain Agnostic

I had the same issue, and using the predefined collections I was limited to only AD imported sites since I am creating my own it caused an issue. Also the predefined query assumes that your in a domain and all the machines in the site will be in the same domain. Worked on it for a bit and got this query working so it is domain agnostic. I am using parameters for site and also built the query so I can base it on a collection that I already have existing which is only computers excluding servers, so that can be changed easily as needed to only get the resources you want.

SELECT vResource.[Guid] FROM vResource            
INNER JOIN dbo.[Inv_AeX_AC_TCPIP] tcp ON tcp.[_ResourceGuid] = vResource.Guid                
INNER JOIN [vSite] site ON site.[Name] = N'%site%'             
INNER JOIN [vSiteSubnetMap] ss ON ss.[_ResourceGuid] = site.[Guid]             
INNER JOIN dbo.[Inv_Subnet] sn ON sn.[_ResourceGuid] = ss.[SubnetGuid]             
WHERE dbo.fnIsIPInSubnet2(tcp.[IP Address], sn.Subnet, sn.[Subnet Mask]) = 1            
  AND vResource.[Guid] IN (          
SELECT [ResourceGuid]              
		FROM [CollectionMembership]              
		WHERE CollectionGuid = N'%collection%'          
)