Deployment and Imaging Group

 View Only
  • 1.  DS 7.6 (HF4) - Tasks in automation fail on predefined computers

    Posted Nov 13, 2015 04:00 AM

    Hi,

    I am testing automation with DS 7.6 (HF4) and it seems like it is working fine if I use existing computers however if I have a predefined computer all tasks fail to run.

    I receive either the following error messages within the automation (smp.log):

    CAtrsException exception, error = "Unable to find class ID", OS error = 2147746291, at line 69

    CAtrsException exception, error = "Failed to execute task", OS error = 2147746291, at line 535

    Or if I try to schedule a task / job from the console I receive the message "This device is not capable of running this task".

    Has anyone else seen the same problem or has anyone seen this working?

    Stefan



  • 2.  RE: DS 7.6 (HF4) - Tasks in automation fail on predefined computers

    Posted Nov 16, 2015 02:36 AM

    Hi Network23,

    I did as you suggested and this seems to do the trick. What are the other steps which I need to take? Is this a known issue?

    Stefan



  • 3.  RE: DS 7.6 (HF4) - Tasks in automation fail on predefined computers
    Best Answer

    Broadcom Partner
    Posted Nov 16, 2015 05:02 AM

    Hi Stefan S.

    First backup your DB!!!

    Then run the follwing SQL Querys to cleanup the item states and to cleanup previous task references

    -- 1) Remove script tasks (parent & child) reference to "windows Computers" filter from [ItemFilter] table
    DELETE FROM ItemFilter WHERE ItemGuid IN
    (
    SELECT ir.ParentItemGuid FROM ItemReference ir
    WHERE ir.ChildItemGuid = 'C6C14A32-2DD0-458C-9300-AB24E8D016FD'
    OR ir.ChildItemGuid = 'ED6E3086-8918-4A4A-92B7-DC0772780DF3'
    AND ir.Hint = 'tasktotype'
    )
    OR ItemGuid = 'C6C14A32-2DD0-458C-9300-AB24E8D016FD' --Run Script

    OR ItemGuid = 'ED6E3086-8918-4A4A-92B7-DC0772780DF3' --Command Script
    OR ItemGuid = 'C788E602-79A7-43B3-9EF7-A9CA2E72209C' --PowerShell
    OR ItemGuid = '082BDA75-7514-400F-9590-A414B8B23B42' -- JavaScript
    OR ItemGuid = 'DE2893DC-E9D6-4551-9B9D-2A8FCA5513FA' -- VBscript
    print 'Cleaned [ItemFilter]'

    -- 2) update [item] for future affected command tasks scripts creation
    Update Item set State =
    '<item>
    <scriptExtension>cmd</scriptExtension>
    <scriptCommandLine>cmd.exe /c "!s"</scriptCommandLine>
    <filterCollections />
    </item>' where Guid = 'ED6E3086-8918-4A4A-92B7-DC0772780DF3' -- Command Script
    Update Item set State =
    '<item>
    <scriptExtension>ps1</scriptExtension>
    <scriptCommandLine>cmd.exe ?/c powershell "&amp; ''!s''; exit $LastExitCode"</scriptCommandLine>
    <filterCollections />
    </item>' where Guid = 'C788E602-79A7-43B3-9EF7-A9CA2E72209C' -- PowerShell
    Update Item set State =
    '<item>
    <scriptExtension>js</scriptExtension>
    <scriptCommandLine>cmd.exe /c cscript "!s"</scriptCommandLine>
    <filterCollections />
    </item>' where Guid = '082BDA75-7514-400F-9590-A414B8B23B42' -- JavaScript
    Update Item set State =
    '<item>
    <scriptExtension>vbs</scriptExtension>
    <scriptCommandLine>cmd.exe /c cscript "!s"</scriptCommandLine>
    <filterCollections />
    </item>' where Guid = 'DE2893DC-E9D6-4551-9B9D-2A8FCA5513FA' -- VBscript
    print 'Reset script items to default state Done!'

    If this doesn´t solve the problem open a support case with a reference to case Nr. 09495329

    PS: We had the same problem on serveral installations... (not on all...)

    Network23



  • 4.  RE: DS 7.6 (HF4) - Tasks in automation fail on predefined computers

    Posted Nov 16, 2015 05:19 AM

    Thanks for the update. But how about the step with adding the computer to the filter. Does this still need to be done for every predefined computer?



  • 5.  RE: DS 7.6 (HF4) - Tasks in automation fail on predefined computers

    Broadcom Partner
    Posted Nov 16, 2015 08:09 AM

    Hi Stefan S.


    A few weeks ago I´ve had a similar problem. To make sure we are talking about the same issue please try the following.
    Modify the Filter Attribute of the Filter named: Windows Computers (Default Attribute:22) change the Attribute to:0 (Normal) - only for testing...


    Add the predefined Computer to the Filter named: Windows Computers and try to schedule the Task / Job from the console

    Do you still see the same message: This device is not capable of running this task?


    If you are able to run the task on the predefined computer let me know and I will provide further steps to solve the issue..

    If it doesn´t solve the problem change the Attribute back to 22 on the Filter: Windows Computers.

    Network23

     


     



  • 6.  RE: DS 7.6 (HF4) - Tasks in automation fail on predefined computers

    Broadcom Partner
    Posted Nov 16, 2015 08:24 AM

    Hi Stefan S.

    No, after running the sql querys there is no need to add the predefined computers to the Filter....

    Please let me know if it´s working or not!

    Network23



  • 7.  RE: DS 7.6 (HF4) - Tasks in automation fail on predefined computers

    Posted Nov 16, 2015 08:32 AM

    Thanks. This did the trick.



  • 8.  RE: DS 7.6 (HF4) - Tasks in automation fail on predefined computers

    Broadcom Partner
    Posted Nov 17, 2015 03:25 AM

    Hi Stefan S.


    Since yesterday there is also a KB regarding this issue: http://www.symantec.com/docs/TECH233389
    Have you done a upgrade or is this a new installation? Where did you upgrade from?


    Network23

     

     



  • 9.  RE: DS 7.6 (HF4) - Tasks in automation fail on predefined computers

    Posted Nov 17, 2015 03:34 AM

    I have upgraded 7.5 SP1 HF3 --> 7.5 SP1 HF5 --> 7.6 HF4