Registered member login:
Register Now
Altirigos » Homepage2

» Current Poll
Do you leave the Aclient enabled?
YES - 83.05%
196 Votes
NO - 16.95%
40 Votes
Total Votes: 236
You may not vote on this poll.
» Stats
Members: 9,948
Threads: 12,158
Posts: 56,984
Top Poster: Nick (4,991)
Welcome our newest member, rmerrill
» Online Users: 31
0 members and 31 guests
No Members online
Most users online at once 294, 06-30-2007 at 12:24 PM.
» July 2010
S M T W T F S
27282930 1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
View Single Post
Old 03-19-2008, 10:08 AM   #7 (permalink)
Mike
 
Mike's Avatar
 
Status: Altiris Engineer (Super Mod)
Join Date: 02-22-2005
Location: South Jordan, Utah, USA
Posts: 1,196


IP grouping can be tricky since it's not predictable as to which NIC DS will choose as NIC1 and use for the IP. All the same, this is a common practice for me. I like to create groups based on subnets and create a script like this one:

/*For Group A*/
UPDATE Computer SET group_id = 20
FROM Computer c INNER JOIN nic_interface nic on c.computer_id = nic.[id]
WHERE nic.ip LIKE '10.10.10.%' AND nic.[mask] = '255.255.255.0'
UPDATE Computer SET group_id = 20
FROM Computer c INNER JOIN nic_interface nic on c.computer_id = nic.[id]
WHERE nic.ip LIKE '10.10.11.%' AND nic.[mask] = '255.255.255.0'
/*For Group B*/
UPDATE Computer SET group_id = 21
FROM Computer c INNER JOIN nic_interface nic on c.computer_id = nic.[id]
WHERE nic.ip LIKE '10.10.20.%' AND nic.[mask] = '255.255.255.0'
/*For Group C*/
UPDATE Computer SET group_id = 22
FROM Computer c INNER JOIN nic_interface nic on c.computer_id = nic.[id]
WHERE nic.ip LIKE '10.10.30.%' AND nic.[mask] = '255.255.255.0'
UPDATE Computer SET group_id = 22
FROM Computer c INNER JOIN nic_interface nic on c.computer_id = nic.[id]
WHERE nic.ip LIKE '10.10.31.%' AND nic.[mask] = '255.255.255.0'
I put all of this in a .sql file and I run a call a bat file from a job if I need the groups to be straight for job execution. I do this primarily because I like to use folder heirarchy as a token.
__________________
______________________
Mike Ainsworth

Mike is offline   Reply With Quote
 
Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -4. The time now is 06:00 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
vB.Sponsors
Altirigos