Report to return all servers under DPM

Hi,
I'm tying to create a report to return all servers currently under DPM protection. I have a number of DPM servers and need to report which servers are backed-up by which dpm server.
I'm joining the following tables together [tbl_AM_Server], [tbl_AM_InstalledAgent], [tbl_AM_Agent] but i'm getting more servers coming back than the interface is showing. They may have been servers that were previously removed. This is what my query looks
like:
select distinct s.NetbiosName
from [dbo].[tbl_AM_Server] s
inner join [dbo].[tbl_AM_InstalledAgent] ia
on s.ServerId = ia.ServerId
inner join [dbo].[tbl_AM_Agent] a
on ia.AgentID = a.AgentID
where ia.Deleted = 0
and  ia.Enabled = 1
and s.NetbiosName <> (select @@SERVERNAME)
Any help is appreciated.
Paul

Hi,
This should work better.
select distinct s.NetbiosName
from [dbo].[tbl_AM_Server] s
inner join tbl_JM_JobDefinition jd
on s.ServerId = jd.ServerId
where jd.IsDeleted = 0
and s.IsDPM = 0
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.

Similar Messages

  • Regular Report Not Returning All Rows

    Greetings,
    On APEX version 4.1.1.00.23 Using latest versions of Chrome and IE. I found some threads that discussed this aspect some, but not to the extent that is helpful to my situation.
    I know it is crazy to have APEX return 40K+ rows on a report, but I have a need to do so. I need to return that many rows from a table so that an APEX page can be opened via Excel and then have an Excel macro run over the report results and import all 40K+ rows into a worksheet. As I said, that's crazy, but the decision isn't mine. :-) We have the macro working and it passes parameters to the APEX page and imports data from the APEX page.
    Also, the report has 14 columns on it, not that many.
    Given the requirement above I have a regular report page that only has the report and 2 page items on it. The page items contain values that are passed via Excel and are then used in the WHERE condition of the report. Using the same WHERE condition, when I run the SQL for the report outside of APEX it returns 46,840 rows. I have the both the Number of Rows and Maximum Row Count settings set to 50000. And, I have the Pagination Scheme set to Row Ranges X to Y of Z (with pagination).
    When I run the page and enter the selection criteria the report only returns 15,500 rows. Yes, that's a lot rows. And, it takes about 5 minutes to populate. But, it doesn't return ALL of the rows. Also, the pagination suggests that all rows were returned because it reads - row(s) 1 to 15500 of 15500. I have changed the pagination and max rows settings a lot to see of it's just a matter of having the correct report setting. I've yet to find a setting that will cause the whole 46840 result set to be returned.
    It may end up that the report selection needs to change in order to return fewer rows. But, regardless of that why isn't APEX returning the complete result set now? And, is there a way to force it to return the complete result set regardless of the size?
    Any suggestions are appreciated.
    Thanks, Tony

    cloaked wrote:
    Thanks for the response. Yup, you're correct. Downloading to a CSV might be better. I've set reports up that way many, many times. I have even developed pages that import from a CSV into APEX using PL/SQL, years before it was an APEX feature. I initially set the report up to allow it to be downloaded, but the user doesn't want it to work that way.
    The worksheet will be used by a lot of people in our accounting department and they want the process to be as simple as possible. Right now Excel opens up the APEX page, logs into the application, passes parameters to it for the month and company, hits the Select button, waits on the report to build, then automatically imports it, and finally closes the page. It is quite slick. Yes, it takes 5 minutes to run, but the user is OK with that given what the automation provides.
    So, in order for the automated import to work properly all 45K rows need to display on one page, without pagination. I currently have pagination on the page simply to determine if APEX is returning all of the rows.A process of this nature might work better using an export: XML or export: CSV report template, which won't go anywhere near pagination. When a page containing a report using these templates is requested APEX sends the report results in XML or CSV format rather than rendering the page. This should be faster, avoid complications with pagination, and be easier to parse in Excel.
    Previous thread along similar lines: +{thread:id=2285213}+

  • Will Spotlight finally return ALL entries under iOS 4?

    My old thread on this topic has been archived, so I'll post a new question.
    Using iOS 3, when searching for a term that is included for sure in a note (notes app), it happens that this term is not found by spotlight. Somewhere I found a hint that this happens when text is copy-pasted into notes, or when a note was written in Mail.app on the Mac and then synced to iPhone. This seems to be true, as far as I found out by testing. Any idea whether iOS 4 Spotlight will deliver ALL results properly?
    An other issue with iOS 3 Spotlight was that Spotlight didn't return any term written in any contact's note field. Any news about this?
    Maybe there are developers out there who know about this issue and already tested the search behaviour of iOS 4?

    I recently updated my newish (April 2010) iPod Touch OS to iOS4, and found to my dismay that Spotlight no longer works correctly to access contacts. The specific symptom: swipe right from Home screen to the Spotlight search, enter a search to find a contact, select the contact, and Spotlight either returns to the last contact that was open or to the entire contact list.
    I made a call to Apple support mid/late July and this was news to them. Hopefully it's made it's way to an interested engineer to correct.
    Is this perhaps an issue addressed in the iOS4.0.1 update?

  • Report Region show all rows?

    Hi,
    I have a report region in which I want to show all rows. Setting the pagination scheme to No Pagination doesn't
    seem to do the trick. I have set Number of Rows and Maximum Row Count both to NULL. Nothing seems to work.
    Is there some trick to get all rows to be displayed?
    Thanks in advance!

    Hi,
    I have two report regions on different pages. On both I have set 'Number of Rows' and 'Maximum Row Count' to null. One report will return all the records in a query (~800), the other report will only return 500. I can't see any other differences in the reports that would cause this behaviour.
    I didn't really want to restrict my reports to a set number of rows, is this really the only option?
    Thanks,
    Rochelle.
    Edited by: Rochelle K on Nov 5, 2009 10:13 AM

  • How to return all field names in a table

    How do you write a report to return all field names in a table? I prefer the field names in a column.
    Thanks
    Wayne

    Hi,
    In Oracle it is,
    Select column_name from user_tab_cols where table_name  = 'Table_Name';
    Note: Table_Name should be in capital letters
    In MS SQL Server it is,
    SELECT Column_Name + ', '
    FROM INFORMATION_SCHEMA.COLUMNS
    WHERE TABLE_NAME = 'Table_Name'
    Hope this helps!
    Thanks
    -Azhar

  • REUSE_ALV_GRID_DISPLAY_LVC not returning all of entered changes in T_OUTTAB

    Have 4 columns in IT_FIELDCAT_LVC marked with EDIT  = 'X'. T_OUTTAB is examined in I_CALLBACK_USER_COMMAND.  Only the first keyed fields are returned.  The number of fields returned with the keyed changes varies.  Could not find a relevant SAP note.

    Found that a double-click anywhere on the report reliably returns all entered changes.  An added button on the application toolbar did not return all entered changes.
    Edited by: Jim Gebhardt on Nov 11, 2008 11:11 PM

  • Sharepoint Audit report with all items under Data and items selected

    Hi all,
    We have to use following settings under SharePoint
    Configure audit settings.
    Configure audit settings => Data and Items => specify events to audit.
    Under specify events to audit. Select all the available options.
    Could you please answer my following questions?
    What are the recommended guidelines from Microsoft to use audit reporting for collaboration site specifically. More in terms of which settings to be enables for logging considering disk
    space usage.
    If we want to select all options under document and items section for auditing what are the recommendations from Microsoft to implement it. Mire in terms of infrastructure enhancements
    to accommodate the additional log space requirements.

    It's always very relative how much space to reserve for audit logs on SharePoint. It depends on so much factors... Only you can decide what is the best practice for your environment.
    A sharepoint farm should be well maintained as per :
    1. Microsoft's recommendations on : Topology, Hardware and Software requirements, Operational procedures and most important Capacity guidelines:
    http://technet.microsoft.com/en-us/library/ff758645(v=office.15).aspx
    http://technet.microsoft.com/en-us/library/cc262787(v=office.15).aspx
    2. Organisation's IT policies and procedures : Farm Configuration, Workload and monitoring
    http://technet.microsoft.com/en-us/library/ff758658(v=office.15).aspx
    http://technet.microsoft.com/en-us/library/ee748651(v=office.15).aspx
    Also it might be useful to check  SharePoint Auditing Quick Reference Guide
    --- Jeff (Netwrix)

  • XL Reporter Parameter that returns all data if not used

    Is there a way to use a parameter on a field, but if the user doesn't select a value, return all rows? I have a report that returns a bunch of data about items. I would like one report where if the use chooses to narrow it down to a specific item they can, but if they choose not to narrow it down, it would return all items. I can only get it to do one or the other, but not both in one report.
    Thanks

    I have a parameter setup for the ItemCode and I tried to assign it * for its default value, but it returns nothing. If I enter a valid item code it works, but it seems as if I put an * in, it looks specifically for that rather than treating it like a wildcard. If I remove the parameter and put the *, it returns all. I want the parameter available, but if they don't want to use it I would like to return all records.

  • Get all children under root

    I want to know whats the easiest way to get all children under root. Say, if the depth is 100, how can I get the all the children from depth 1 to depth 100? Does java has an API?
    Thanks.

    Hi,
    You are not seeing the DR elements because you haven't traversed to them yet. Doing a getChildren on the Param element only returns you its first level children. You need to either recursively invike getChildren() on each of the param's children or call getDescendants once on the param element whichever suits you best.
    You can do as follows:
                 SAXBuilder builder = new SAXBuilder();
                 builder.setValidation(false);
    // use a fileinputstream in place of stringstream
                 InputSource is = new InputSource(stringStream);
                 document = builder.build(is);
                Element element = document.getRootElement();
                if(element.getName().equalsIgnoreCase("PARAM"))
                    List l=element.getChildren();
                    Iterator listIterator=l.iterator();
                    int j=0;
                        while(listIterator.hasNext())
                        Element paramelem =(Element)listIterator.next();
                        if(paramelem.getName().equalsIgnoreCase("DETAILS")) {
                            List einfo = paramelem.getChildren();
                            Iterator einfoIter = einfo.iterator();
                            while(einfoIter.hasNext())
                                Element einfoElem =(Element)einfoIter.next();
                                if(einfoElem.getName().equalsIgnoreCase("DR")) {
                                    String errCode = einfoElem.getText();
                                    System.out.println(" errcode " + errCode);
                        }Hope this helps.
    cheers,
    vidyut

  • How to Create a Parameterized Report - The select "- ALL-" for department and manager not working.

    I downloaded the OEHR Sample Objects application and followed the steps in Oracle® Application Express Advanced Tutorials
    Release 3.2.
    The parameters and report seem to be working correctly except when I enter "all" for department or manager I get no matching hits.
    What's the most efficient way to retrieve "all" if the users selects all for dept and mgr - thus we'd want to return all records in the table.
    Region snipprt
    Enter Search
    Search Employee
    Dept
    - ALL -
    Administration
    Marketing
    Purchasing
    Human Resources
    Shipping
    IT
    Public Relations
    Sales
    Executive
    Finance
    Accounting
    Treasury
    Corporate Tax
    Control And Credit
    Shareholder Services
    Benefits
    Manufacturing
    Construction
    Contracting
    Operations
    IT Support
    NOC
    IT Helpdesk
    Government Sales
    Retail Sales
    Recruiting
    Payroll
    Mgr
    - ALL -
    Steven King
    Neena Kochhar
    Lex De Haan
    Alexander Hunold
    Nancy Greenberg
    Den Raphaely
    Matthew Weiss
    Adam Fripp
    Payam Kaufling
    Shanta Vollman
    Kevin Mourgos
    John Russell
    Karen Partners
    Alberto Errazuriz
    Gerald Cambrault
    Eleni Zlotkey
    Michael Hartstein
    Shelley Higgins
    The following is the sql that was provided as part of the turitoral.
    SELECT
       "OEHR_EMPLOYEES"."EMPLOYEE_ID" "EMPLOYEE_ID",
       "OEHR_EMPLOYEES"."FIRST_NAME" "FIRST_NAME",
       "OEHR_EMPLOYEES"."LAST_NAME" "LAST_NAME",
       "OEHR_EMPLOYEES"."EMAIL" "EMAIL",
       "OEHR_EMPLOYEES"."PHONE_NUMBER" "PHONE_NUMBER",
       "OEHR_EMPLOYEES"."HIRE_DATE" "HIRE_DATE",
       "OEHR_EMPLOYEES"."JOB_ID" "JOB_ID",
       "OEHR_EMPLOYEES"."SALARY" "SALARY",
       "OEHR_EMPLOYEES"."COMMISSION_PCT" "COMMISSION_PCT",
       "OEHR_EMPLOYEES"."MANAGER_ID" "MANAGER_ID",
       "OEHR_EMPLOYEES"."DEPARTMENT_ID" "DEPARTMENT_ID"
    FROM
       "#OWNER#"."OEHR_EMPLOYEES" "OEHR_EMPLOYEES"
    WHERE
         (lower(first_name) like '%' || lower(:P1_NAME) || '%' OR
          lower(last_name) like '%' || lower(:P1_NAME) || '%')
    AND department_id = decode(:P1_DEPT,'%null%',department_id,:P1_DEPT)
    AND manager_id = decode(:P1_MGR,'%null%',manager_id,:P1_MGR)

    Hi,
    Use this..
    SELECT
       "OEHR_EMPLOYEES"."EMPLOYEE_ID" "EMPLOYEE_ID",
       "OEHR_EMPLOYEES"."FIRST_NAME" "FIRST_NAME",
       "OEHR_EMPLOYEES"."LAST_NAME" "LAST_NAME",
       "OEHR_EMPLOYEES"."EMAIL" "EMAIL",
       "OEHR_EMPLOYEES"."PHONE_NUMBER" "PHONE_NUMBER",
       "OEHR_EMPLOYEES"."HIRE_DATE" "HIRE_DATE",
       "OEHR_EMPLOYEES"."JOB_ID" "JOB_ID",
       "OEHR_EMPLOYEES"."SALARY" "SALARY",
       "OEHR_EMPLOYEES"."COMMISSION_PCT" "COMMISSION_PCT",
       "OEHR_EMPLOYEES"."MANAGER_ID" "MANAGER_ID",
       "OEHR_EMPLOYEES"."DEPARTMENT_ID" "DEPARTMENT_ID"
    FROM
       "#OWNER#"."OEHR_EMPLOYEES" "OEHR_EMPLOYEES"
    WHERE
        (:P1_NAME IS NULL OR
            (:P1_NAME IS NOT NULL AND
                    (lower(first_name) like '%' || lower(:P1_NAME) || '%') OR
                    (lower(last_name) like '%' || lower(:P1_NAME) || '%')
        ) AND
        (:P1_DEPT IS NULL OR department_id = :P1_DEPT) AND
        (:P1_MGR IS NULL OR manager_id = :P1_MGR)

  • Summary report to show all the software components and version installed

    We are using 64bit Windows 2003 and Hyperion Planning and Essbase in 2 separate servers. I am not sure whether Windows can have a summary report to show all the software components and version installed and show it is 32bit or 64bit version installed?
    Thanks!

    Refer steps here to delete SC file.:
    http://support.apple.com/kb/TS2363
    Then proceed to repair your QuickTime. START / CONTROL PANEL / ADD n REMOVE PROGRAMS / highlight QUICKTIME and click CHANGE then REPAIR.

  • Ad hoc Risk Analysis report is returning incorrect Risk Level for some Risks

    We are running GRC AC 10.0 with SP 16.  After application of Support Pack 16, some of our ad hoc risk analysis reports are returning incorrect risk levels.  For example:  Risk F024 Open closed periods and inappropriately post currency or tax entries is set as High.  When the Ad hoc report is run, the risk F024 will show on a user with a level of Medium.  We have generated our ruleset and have followed the normal procedures used to implement the support pack.  Any ideas what is causing this issue?  I have exhausted my knowledge and search attempts.
    Any help is appreciated.
    Sara B.

    Hi Kevin
    Many thanks for your post, we did run a full BRA but no luck unfortunately. Some Risks still reporting as Medium when they should be Critical or High. Oddly it is reporting correctly against some risks just not for all!
    Cheers
    Hussain

  • How can I set limitations on how many records a report can return

    I have a report on the web using Oracle Reports builder and I have the client enter in date parameters for the report that they want.
    Well with date ranges for different clients a different number of records are returned. Because of time it can take the report to return I want to limit the number of records that report can return.
    How can I go about doing that? I don't want to limit with date parameters because date won't really work for me. I need to limit on how many records can be returned. If it exceeds 10,000 records I want the client to refine the date range of schedule the report to run later. Meaning we will run that report. So I would have two check boxes if the count was over 10,000 do you want to define your date or schedule the job to run later.
    Can any one help me with this? How would I go about this?

    To know if the report is going to return more than 10,000 records, you first have to run the query with a 'select count(1) from ... where ...' (with the same from and where clauses as you normal query). Since this takes about the same time as runnng your report, I wonder if you really gain anything (although formatting may take some time too).
    You may simplify the select count(1) query by omitting all the lookup tables that are only needed for formatting. That way your query may run a lot faster. You can put this in your after parameter form trigger.

  • Monitor all services on all servers?

    Hi all
    I'm looking for the easiest way of monitoring all services with startupmode=auto and alerts when state!=running. I found this thread:
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/dbb175c4-8ec0-4427-9d10-9382044144e7/monitor-all-windows-services-on-multiple-servers-and-recover?forum=operationsmanagerauthoring
    So I took this code
    Dim oAPI, oBag
    Set oAPI = CreateObject("MOM.ScriptAPI")
    Set oBag = oAPI.CreatePropertyBag()
    strComputer = "."
    Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
    Set colListOfServices = objWMIService.ExecQuery _
    ("SELECT * FROM Win32_Service WHERE StartMode = 'Auto' AND Started = false")
    If colListOfServices.Count > 0 Then
    For Each objService in colListOfServices
    If strDesc = "" Then
    strDesc = objService.Caption
    Else
    StrDesc = StrDesc & ", " & objService.Caption
    End if
    Next
    Call oBag.AddValue("Description", strDesc)
    Call oBag.AddValue("State", "BAD")
    Else
    Call oBag.AddValue("State", "OK")
    End if
    Call oAPI.Return(oBag)
    I used this in a two state monitor I created in our SCOM 2012 environment. For starters it runs every 2 minutes, it's enabled, monitor target is Windows Server 2008 Operating System, it's set to generate alerts on warning, the Unhealthy expression is:
    Property[@Name='State'] Equals BAD
    And the Healthy Expression is:
    Property[@Name='State'] Equals GOOD
    Unfortunately I'm getting no alerts at all. And I dont think I have any way of seeing if it's actually discovering all the services? AND I have no previous experience with vb scripting, but do have some powershell experience.
    Any suggestions on how to get this up and running please?
    Update: I just got alerts from all servers:
    Workflow Runtime: Failed to run a process or script
    The process started at 11:25:%1 failed to create System.PropertyBagData, no errors detected in the output. The process exited with 1.
    Command executed "C:\Windows\System32\cscript.exe" /nologo "Company.ServiceMonitoring"

    At the first point make sure that you are creating the service monitor in Authoring --> Management Pack Templates --> Windows Service.
    The place where we change is within the discovery part and not monitor. Search for the text what you entered as Service Name while creating the service monitor. You should see something similar to this,
    <Discovery ID="ServiceStateProbePage_5409ab4012384fb28dea99f892e28fec.DiscoveryRule" Enabled="false" Target="Windows!Microsoft.Windows.Computer" ConfirmDelivery="false" Remotable="true" Priority="Normal">
            <Category>Discovery</Category>
            <DiscoveryTypes>
              <DiscoveryClass TypeID="ServiceStateProbePage_5409ab4012384fb28dea99f892e28fec" />
            </DiscoveryTypes>
            <DataSource ID="DS" TypeID="Windows!Microsoft.Windows.Win32ServiceInformationProviderWithClassSnapshotDataMapper">
              <ComputerName>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
              <ServiceName>------------ServiceName>
              <Frequency>60</Frequency>
              <ClassId>$MPElement[Name="ServiceStateProbePage_5409ab4012384fb28dea99f892e28fec"]$</ClassId>
              <InstanceSettings>
                <Settings>
                  <Setting>
                    <Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
                    <Value>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
                  </Setting>
                  <Setting>
                    <Name>$MPElement[Name="MicrosoftSystemCenterNTServiceLibrary!Microsoft.SystemCenter.NTService"]/ServiceName$</Name>
                    <Value>$Data/Property[@Name='Name']$</Value>
                  </Setting>
                  <Setting>
                    <Name>$MPElement[Name="MicrosoftSystemCenterNTServiceLibrary!Microsoft.SystemCenter.NTService"]/ServiceProcessName$</Name>
                    <Value>$Data/Property[@Name='BinaryPathName']$</Value>
                  </Setting>
                  <Setting>
                    <Name>$MPElement[Name="MicrosoftSystemCenterNTServiceLibrary!Microsoft.SystemCenter.NTService"]/DisplayName$</Name>
                    <Value>$Data/Property[@Name='DisplayName']$</Value>
                  </Setting>
                  <Setting>
                    <Name>$MPElement[Name="MicrosoftSystemCenterNTServiceLibrary!Microsoft.SystemCenter.NTService"]/Description$</Name>
                    <Value>$Data/Property[@Name='Description']$</Value>
                  </Setting>
                  <Setting>
                    <Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
                    <Value> </Value>
                  </Setting>
                </Settings>
              </InstanceSettings>
            </DataSource>
          </Discovery>

  • S_ALR_87012357 report - Advance Return for Tax on sales and purchase

    Hi Friends,
    I would like to know few things in regards the VAT report S_ALR_87012357 report - Advance Return for Tax on sales and purchase:
    (1) What information brings the S_ALR_87012357 report?
    (2) As of now this report displays tax against vendor line item and not expense line item. Is there any other report that shows all the positions lines affected to tax?
    (3) Is it possible that the tax line stays only in the expense line account and not in the vendor line account or not any intercompany line account?
    (4) Is it possible S_ALR_87012357 report shows information about the tax allocanted in expense accounts and not in vendor accounts?
    Appreciate a faster response.
    Thanks in advance.

    Please try report S_ALR_87012359. This report gives you opportunity to choose account selection.
    I am unsure how the SAP is setup in your organisation. S_ALR_87012357 should pick up expenses selection as well.
    This report entirely depends on tax code selection.

Maybe you are looking for

  • 'A file or directory doesn't exist' error during java stack update

    Dear All, I've done a fresh installation of solution manger system on IBM iseries box (OS400 & DB2 combo). As part of post installation activity, I've updated the kernel patch, updated the ABAP stack to sp4, and am currently doing the java stack upda

  • Display of sender's name in email messages (order backwards)

    If I receive an email sent: From: "Xyz, Ltd." <[email protected]> In my list of emails the sender appears correctly as Xyz, Ltd. But if I open the email itself, it displays as: Ltd. Xyz <[email protected]> If I look at the same mail in Gmail it displ

  • Japanese JIS encoding conversion in Linux

    My program reads in a japanese data from MySQL database which the data is stored in UTF-8 and convert it into EUC-JP encoding in Linux and finally write it into a Text File. However, when I open the Text File, the contents have been garbled. I do not

  • Deleting large number of records

    Hi Gurus, I need to delete millions of records from a table of a specific column. This cloumn is of type BLOB and text data in column looks like #29/07/2010 2:20 PM#Eevent#MyEvent#MyClass_classToSchedule=abcd I need to delete records based on partial

  • Half Resolution Quick Answers Required Please!

    Hi there, I have just got to 78% on exporting a project from Premiere CS6 ready for Encore and have just realised I have left the preview setting in premiere at 1/2 resolution. Will this affect my export? I would appreciate if someone can answer this