Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

Altiris DS 6.9 automatic retry task

Created: 03 Apr 2013 | 6 comments
Daniel Okon's picture

Hello,

 

How I can make automatic retry task in altiris DS 6.9 after job fails?? It's very important for me.

 

Best regards,

Daniel

Operating Systems:

Comments 6 CommentsJump to latest comment

BBC's picture

If I remember well, we do that with a second job that is called based on the error code.

Example:
Job 1: Install MyApplication
Job 2: Handle Error 1603

If Job 1 returns an error 1603, we call Job 2 and that one grabs an Inventory, runs a dummy script and on success calls Job 1 again.

This should be a feature of 7.x where you can automatically retry failed tasks...

-BBC

Daniel Okon's picture

Thanks for reply but it doesn't work for me. Any other ways ????

Still i've got message error: the binding handle is invalid" when i try add computer to active directory using netdom program... when i use "retry task" every things is ok and computer is in AD. HELP :(

BBC's picture

Hi Daniel,

Is there possibly something wrong with the task you run? Since I don't know the details of the task, here an example of how I use NetDom.exe for (the very few) Windows XP clients to join the AD during rebuilds. It might be very handy if you could provide more details up front, such as what the job exactly does and what should be achieved...

-BBC

Sample Netdom command line:

netdom.exe join /d:<Your FQDN> %COMPUTERNAME% /userd:<YourDomain>\<Your Acocunt that has rights for the AD/OU> /passwordd:<Password to the account>

In case you consider Powershell:

$credential = New-Object System.Management.Automation.PsCredential("<Domain>\<Account>", (ConvertTo-SecureString "<Password to the account>" -AsPlainText -Force))
Add-Computer -DomainName "<FQDN of your domain>" -Credential $credential

Daniel Okon's picture

In my opinion my task are ok. I've got 2 conditions for netdom: Laptops and Computers.

my script for laptops:

ping localhost -n 25

cd c:\
ping localhost -n 2
cd c:\temp\netdom\
ping localhost -n 2
netdom join %computername% /d:xxx.win /OU:"OU=Laptops,OU=Install_PC,OU=UST,OU=test,DC=xxx,DC=win" /ud:xxx.win\User /pd:pwd

 

my script for computers:

 

ping localhost -n 25

cd c:\
ping localhost -n 2
cd c:\temp\netdom\
ping localhost -n 2
netdom join %computername% /d:xxx.win /OU:"OU=Desktops,OU=Install_PC,OU=UST,OU=test,DC=xxx,DC=win" /ud:xxx.win\User /pd:pwd

 

In DS console i'm using "Run the script from file" because in another way i don't have permissions for add to AD.

 

For Computers everything is ok, but for laptops is something wrong. Error message: the binding hanlde is invalid.

I add computers to AD after drivers instalation, but if i do it before, Laptops are in domain, but I can't add laptops to AD before drivers instalation, cause then i can't install all drivers automaticly.

BBC's picture

A few questions and comments here...

Have you tried to copy the script to the client and execute there?

If you run the script thru the DS server, the %COMPUTERNAME% variable is not what you want to use, but %COMPNAME% so that the DS can replace the variable when creating the temporary file.

The execution thru DS is handled using the local SYSTEM account, which should have more rights than even the local Administrator.

An alternative would be to create a "Modify Configuration" task, which can also cater for the same. The strings for the conditions would be set under Network Configuration:

myFQDNdomain.com/Computers/Europe/Desktops

myFQDNdomain.com/Computers/Europe/Laptops

IMPORTANT:

What you need to have set for that to work is under the Tools -> Options -> Domain Accounts tab enter the appropriate domain account with the respective password, where my experience is that you fill in all 4 lines and not enter the user name in a format like DOMAIN\USERNAME.

Daniel Okon's picture

Thanks for reply,

I solved my problem. There was an error with drivers instalation. I just add restart task and everythings is ok. I use netdom because in other task, i move computers form one OU to another OU.