Close Menu
    Facebook X (Twitter) Instagram
    Sunday, October 12
    X (Twitter) LinkedIn Reddit RSS
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»SCCM 2007»SLA report for SCCM Software Distribution

    SLA report for SCCM Software Distribution

    Eswar KonetiBy Eswar KonetiSeptember 23, 3:04 pm2 Mins Read SCCM 2007 2,717 Views
    Share
    Facebook Twitter LinkedIn Reddit

    Have you been asked by your boss saying can you send me the report for the applications that are deployed last month with Success rates /failures? You will be wonder after looking at the success rate 🙂 and start troubleshooting why is this .

    We will be deploying number of applications per day using SCCM and difficult to track the status of each application and export to document . This report will give you all the advertisements that are deployed with in specific date/time.

    Create a new report with the below SQL query with 2 prompts (start time and end time)

    select adv.AdvertisementName as SoftwareDistributionEvent,
    sum(case LastState when 0 then 0 else 1 end) as Accepted,
    sum(case LastState when 13 then 1 else 0 end) as Successful,
    sum(case LastState when 11 then 1 else 0 end) as Failed,
    sum(case when LastState >= 8 AND LastState <=10 then 1 when LastState = 12 then 1 when LastState = -1 then 1 else 0 end) as NotCompleted,

    round(100.0*sum(case LastState when 13 then 1 else 0 end)/count(*),1) as SuccessRate,
    adv.PresentTime as DistributionDate,
    pkg.Name as PackageName, pgm.ProgramName, coll.Name as CollectioName,
    --count(*) as C005,
    adv.AdvertisementID, adv.SourceSite
    from v_Advertisement adv
    join v_Package pkg on adv.PackageID=pkg.PackageID
    join v_Program pgm on adv.PackageID=pgm.PackageID and adv.ProgramName=pgm.ProgramName
    join v_Collection coll on adv.CollectionID=coll.CollectionID
    join v_ClientAdvertisementStatus stat on adv.AdvertisementID=stat.AdvertisementID
    where (adv.PresentTime > @StartDate) AND (adv.PresentTime < @EndDate) and
    (adv.AssignedScheduleEnabled != 0 or adv.AdvertFlags & 0x720 != 0)
    group by adv.AdvertisementID, adv.AdvertisementName, adv.PresentTime,
    pkg.Name, pgm.ProgramName, adv.SourceSite, coll.Name
    order by adv.AdvertisementName

    Create a prompt for  Startdate and end date:

    Enter the information shown in below screen shot

    Below is the report how it looks like :

    Try it out and let me know ur comments on this. Good luck in getting agreed SLA success rate on distribution :).

    Download the MOF file from here and import into your SCCM 2007 console

    applications report sccm Configmgr 2007 configmgr report Hit rate for all SCCM advertisements packages report deployed monthly SCCM 2007 SCCM Application Deployment Success Rate sccm report SLA report software Distribution software distribution report SQL
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    SCCM SQL Report – Compare Installed Apps on TWO Different Computers

    July 13, 10:35 am

    Monitoring Endpoint Security Applications with SCCM ConfigMgr SQL

    October 11, 8:48 pm

    Efficiently Identify Co-Managed Devices: Techniques and Tools

    January 17, 8:37 pm

    12 Comments

    1. Anil on February 8, 2016 2:00 AM

      Hi Eswar,

      I need some assistance on the above report, first will this work on SCCM 2012 SP1 and the second how to get the "2 prompts (start time and end time)", any help is much appreciated.

      Regards
      Anil

      Reply
      • Eswar Koneti on February 10, 2016 5:39 PM

        haven't tested in Configmgr 2012 ,if at all works,this is only for packages but not for applications. Try the SQL Query in your Configmgr 2012 ,change the dates as you required ,run it. About creating SQL prompt ? where do you want to create ? in SSRS ? if so ,you dont need to create any as the query itself create prompts automatically with manual input the entries. for ex: yyyy-mm-dd

        Reply
        • Anil on February 11, 2016 1:25 AM

          Hi Eswar,

          Thanks for your reply, Any guidance or a way of getting a report about all the installations done for all the application in a month in a single view. For e.g. in Jan 2016 total installation of adobe reader = 100 etc, something on these lines I have checked the default reports but those provide me for single application which in turn I have to drill down, which will make my life hell while reporting. Any help / guidance is appreciated.

          Regards
          Anil

          Reply
          • Eswar Koneti on February 11, 2016 10:01 PM

            i dont think so its possible for applications due to application deployment evaluation cycle. When you deploy an application to 100 Pc's ,though it is installed, this evaluation cycle keeps checking whether the application is installed or not and send the status message ,so it is not really easy to track on that matter but you can generate inventory report with application install date (v_add_remove_programs) to check the installation date <30 days or so.

            Reply
    2. Ani on February 8, 2016 1:55 AM

      Hi Eswar,

      Need some in the above mentioned report, will this report work for sccm 2012 sp1 and the second is how do get the sql prompt

      Thanks

      Reply
      • Eswar Koneti on February 10, 2016 5:39 PM

        haven't tested in Configmgr 2012 ,if at all works,this is only for packages but not for applications. Try the SQL Query in your Configmgr 2012 ,change the dates as you required ,run it. About creating SQL prompt ? where do you want to create ? in SSRS ? if so ,you dont need to create any as the query itself create prompts automatically with manual input the entries. for ex: yyyy-mm-dd

        Reply
    3. Ian Fraser on December 11, 2013 4:25 PM

      Hi - thanks for replying. I've just been through the process again and bizarrely enough, its pasted in ok! So looks like its working fine, thanks.

      Do you have any thoughts on adding some further reporting per system?

      So what I'm looking at doing is returning a report for a complete site deployment of about 500 pc's. I want to return the success rate per pc of package deployments. Each PC is a member of a particular deployment group. The group is assigned to a set of packages as a query. So for example group 1 is assigned via query to packages a,b,c,d,e, and pc1, pc2, pc3 are members of this group. We have something like 20 groups.

      Report wise, I'd want to return something in for format of

      Computer Name Packages Status

      PC00001 Packagename1 Sucesss
      Packagename2 Failed

      PC00002 Packagename2 Failed
      PC00003 Packagename1 Success

      etc

      Many Thanks

      Ian

      Reply
    4. Ian Fraser on December 9, 2013 10:16 PM

      Hi - I have an issue importing the MOF - doesn't seem to be appearing in the console - I have rights to import.

      Alternatively, I can manually enter the query into a report, but it errors out with what looks like a syntax error.

      Can you help?

      Reply
      • Eswar Koneti on December 11, 2013 8:06 AM

        what error do you see ? can you try to paste the query into report by creating new report ?

        Reply
    5. Michael S. on September 17, 2012 2:07 PM

      Hallo,

      the report does not work for me. I only get an exclamation without an specific error message after entering the query.
      I copied the query directly from the txt. Can you help me?

      Thanks and regards

      Michael

      Reply
      • Eswar Koneti on September 17, 2012 6:43 PM

        hi,
        you need to replace the fancy quotes and try again...

        Reply
    6. Pingback: Bồn nước

    Leave a ReplyCancel reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Sign Up

    Get email notifications for new posts.

    Author

    I’m Eswar Koneti ,a tech enthusiast, security advocate, and your guide to Microsoft Intune and Modern Device Management. My goal? To turn complex tech into actionable insights for a streamlined management experience. Let’s navigate this journey together!

    Support

    Awards

    Archives

    © Copyright 2009-2025 Eswar Koneti, All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.

     

    Loading Comments...