Registered member login:
Register Now
Altirigos » Altiris Administrators » Scripts » ASDK Documentation

» Current Poll
Do you leave the Aclient enabled?
YES - 82.81%
106 Votes
NO - 17.19%
22 Votes
Total Votes: 128
You may not vote on this poll.
» Stats
Members: 9,488
Threads: 11,748
Posts: 55,278
Top Poster: Nick (4,981)
Welcome our newest member, johno
» Online Users: 36
0 members and 36 guests
No Members online
Most users online at once 294, 06-30-2007 at 12: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
Reply
Old 02-09-2010, 02:40 AM   #1 (permalink)
 
Status: Junior Altiris Admin
Join Date: 02-04-2010
Location: Sydney
Posts: 9


ASDK Documentation

The documentation provided with the ASDK seems to be pretty light. Is there some better documentation somewhere to aid in scripting?
manks is offline   Reply With Quote
Old 02-09-2010, 09:25 PM   #2 (permalink)
 
TRYDL's Avatar
 
Status: Super Altiris Admin
Join Date: 03-08-2006
Location: Baltimore, MD
Age: 29
Posts: 576


What version of the ASDK? 2.0 or 1.4?

Besides Connect and this forum, there is much else. But then again scripting is call COM calls, pretty generic. If you have a question, post it and what you have already written.

I'm sure some of us can help you
__________________
3rd Floor Garage Door Operator
TRYDL is offline   Reply With Quote
Old 02-10-2010, 07:37 AM   #3 (permalink)
 
Status: Junior Altiris Admin
Join Date: 02-04-2010
Location: Sydney
Posts: 9


Ok so I create an agent object using:

set agent = CreateObject("Altiris.AeXNSClient")
set swd = agent.ClientPolicyMgr.ClientAgent("Altiris.SWD")

from that I can say update the agent using updatepolicies:

ignoreBlockouts = 1
call agent.UpdatePolicies( ignoreBlockouts )

or get the policy in XML using:

Set policy = agent.policies

What I can do is parse the XML and get the policy guids then run the runadvertisments method to run the policy.

So for example I can loop through all the policy guids and force an install of software. Is there a better or easier way of scripting - "install/run all policies assigned to me"?


A few questions:


1. Is there anyway to check compliance via script without running some check on the NS DB? e.g., if there is any policy that is 'Not Compliant' (say its failed or whatever to run)?


I'm sure I've got more.


cheers
manks is offline   Reply With Quote
Old 02-10-2010, 10:05 PM   #4 (permalink)
 
TRYDL's Avatar
 
Status: Super Altiris Admin
Join Date: 03-08-2006
Location: Baltimore, MD
Age: 29
Posts: 576


Correct me if I am wrong, but your basic task is to accelerate all software advertised software deliveries for a computer or group of computers?

This is collection / filter driven. So once a managed object is in the proper collection and pulls a configuration update, it will perform all the assigned tasks. There is a DS task in the samples folder that does this. If you wanted to force collection updates you would pass a null value to the collection update method. I dont have the ASDK in front of me, but I can point it out more if need it.

I dont see a reason yet why you would want to parse the XML, when all assigned packages are a property.

HTH
__________________
3rd Floor Garage Door Operator
TRYDL is offline   Reply With Quote
Old 02-11-2010, 05:46 AM   #5 (permalink)
 
Status: Junior Altiris Admin
Join Date: 02-04-2010
Location: Sydney
Posts: 9


We're not using DS, purely NS.

Basically, the script we are developing is running client side when we reimage a box.

Once we install the Agent, it needs to grab a guid from the server and send a basic inventory.

We then force a policy update which grabs the policies (software) assigned to the machine. We can then force the software to install via the runadvertisment method by passing it the policy guid.

It sounds like there a better way to grab all the policy guids via script. Can you elaborate?

Next issue is determining compliance. We essentially need to know when all the software is installed. Is there someway to grab the compliant values via script? e.g., if a machine based on the policy is considered compliant. If we can get a value that signifies that a particular policy is compliant on a machine we can determine whether the software has installed.
manks is offline   Reply With Quote
Old 02-11-2010, 06:34 PM   #6 (permalink)
 
TRYDL's Avatar
 
Status: Super Altiris Admin
Join Date: 03-08-2006
Location: Baltimore, MD
Age: 29
Posts: 576


Quote:
Once we install the Agent, it needs to grab a guid from the server and send a basic inventory.

We then force a policy update which grabs the policies (software) assigned to the machine. We can then force the software to install via the runadvertisment method by passing it the policy guid
Right - this is a timing and not just purely automatic. Even if you prestage all agent installations, the NEW NS agent needs to request a GUID from the NS, the NS has to wait for Automatic Collection Updating, and then that NS agent needs to chime in again to get its configuration policy.

https://kb.altiris.com/article.asp?article=20132&p=1

This is the basic script you need to establish a "hey do you have any policies to apply?"

You could create a collection of managed computers who are new to the NS and then have an alternate Altiris Agent policy with a more aggressive polling interval attached to the policy.

We can take it a step back and say, "Lets use tasks to delivery software installs instead of policies" Even though that may function faster, you would still have to wait for the above GUID generation and then having the agent assigned to a task server. Granted you could queue the task but the agent would need to still be registered with the NS.

In the end, it is difficult for anyone to use the NS has a staging solution as it is a "PULL" technology used to maintain objects in the environment. You need the "PUSH" technology within DS to not only provide the instant gratification of end results but a way to increase the staging speed.

You should be licenses for DS as it comes as a part of Client Management.
__________________
3rd Floor Garage Door Operator
TRYDL is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -4. The time now is 01:34 AM.


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