Registered member login:
Register Now
Altirigos » Homepage2

» Current Poll
Do you leave the Aclient enabled?
YES - 82.79%
101 Votes
NO - 17.21%
21 Votes
Total Votes: 122
You may not vote on this poll.
» Stats
Members: 9,461
Threads: 11,732
Posts: 55,213
Top Poster: Nick (4,981)
Welcome our newest member, Sogiritla
» Online Users: 61
4 members and 57 guests
Ian, JoeNISD, Sogiritla, webbcu
Most users online at once 294, 06-30-2007 at 01:24 PM.
» March 2010
S M T W T F S
28 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 123
View Single Post
Old 09-12-2006, 04:47 PM   #22 (permalink)
Steven_Oakes
 
Status: Altiris Admin
Join Date: 08-15-2006
Location: London, Sydney
Posts: 92


Automating the script..

Hi Everyone.

Im new to these forums, so straight up, I will say Hello.

In answer to how to automate the script, when I need to do things like this I usually use a Notification policy.

Notification policies allow you to automate running some SQL, and you can set it on whatever schedule you would like.

The only catch is that you have to setup an automated action. I usually just create an empty batchfile and point the automated action at that, this causes nothing to happen.

Furthermore, the automated action will only run if you have rows returned from the query. If the query doesnt return rows, then you shouldnt even execute the automated action.

Creating Notification Policies to automate running queries is neat because you can export the items and re-use them on other Notification servers. It also easily allows you to disable the NP if you have a situation where you only want to perform some work and then switch the configuration off.

Keep in mind with this script that it only merges one instance of the duplicate name each run.. so that (and this would rarely be the case) if you have more than one duplicate for the name.domain pair, you will need to execute this script more than once to remove all of the duplicates.

I know how this script works, I was the one who wrote it when working for Altiris.

Cheers,
Steven Oakes
Steven_Oakes is offline   Reply With Quote
 
Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -4. The time now is 11:50 AM.


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