5 Replies Latest reply on Feb 7, 2019 10:30 AM by Andrew Waters

    Latest Inference time in Query

    James A
      Share:|

      Hi,

       

      ADDM 11.2

       

      Is it possible to retrieve the Latest inference time through the query.. in some classes like cluster, databases we don't have the last update success time and so we can use this time in such cases.

       

      Regards,

      James

        • 1. Re: Latest Inference time in Query
          Bob Anderson

          James,

           

          you could use the 'modified()' function.

           

          Something like this:

           

          search SoftwareCluster

          show

          name,

          instance,

          friendlyTime(creationTime(#)) as 'Discovery Created',

          friendlyTime(modified(#)) as 'Discovery Modified'

          1 of 1 people found this helpful
          • 2. Re: Latest Inference time in Query
            Andrew Waters

            The modification time will only change if the node is actually modified. If it is not changed the date is not updated.

             

            You cannot, in general tell the last inference time. It is possible looking at a pattern to be able to determine when the additional information is last checked. Though this can be hard, for example discovery failures mean you need to distinguish between the discovery failure and confirmation of the model. Also depending upon a pattern it may have inferences to DDD nodes in which case it was obviously updated during the associated scan.

             

            In general the easiest thing is just to base it on the time of the first order nodes and accept the odd occasions when this is not the case.

            2 of 2 people found this helpful
            • 3. Re: Latest Inference time in Query
              James A

              so we will not able to use this Latest inference time attribute in the query?

              • 4. Re: Latest Inference time in Query
                Brice-Emmanuel Loiseaux

                This is not an attribute but a code computed value displayed in the UI, as you can read it in the UI tool-tip if you hover your mouse over the "Last Inference Time" string in the UI.

                • 5. Re: Latest Inference time in Query
                  Andrew Waters

                  What this represents is the latest inference time of the associated node. There is no real way to use this in a general query. No way to pick the largest value and it could be very expensive for nodes which have lots of inferences. For a single node you could order the results by the time and piick the latest but that does not work in a general report.