How to find which user id used to discover server

Hi All,

We have added multiple user profile for server discovery. Is there any way to find which profile is used for discovery. 

Regards,

Sridhara.

Parents Reply Children
  • Verified Answer

    +1   in reply to 

    Hi Sridhara,

    The credential_id is populated to the agent CIs rather than nodes so that the report will not show it. Please import the query attached to your env. In the Modeling Studio, you preview it and open the properties of any agent in the preview result. Check what is the value in the 'Reference to the credentials dictionary entry' attribute.

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <resource:XmlResourceWrapper xmlns:resource="http://www.hp.com/ucmdb/1-0-0/ResourceDefinition" xmlns:ns4="http://www.hp.com/ucmdb/1-0-0/PolicyRuleDefinition" xmlns:tql="http://www.hp.com/ucmdb/1-0-0/TopologyQueryLanguage" xmlns:ns3="http://www.hp.com/ucmdb/1-0-0/ViewDefinition">
        <resource xsi:type="tql:Query" name="Agents with credential id" is-active="false" priority="low" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <tql:node class="agent" name="Agent" id="11">
                <tql:where>
                    <tql:properties>
                        <tql:not>
                            <tql:is-null>
                                <tql:property-ref name="credentials_id"/>
                            </tql:is-null>
                        </tql:not>
                    </tql:properties>
                    <tql:data-stores>
                        <tql:data-store>UCMDB</tql:data-store>
                    </tql:data-stores>
                </tql:where>
                <tql:content>
                    <tql:properties>
                        <tql:property name="display_label"/>
                        <tql:property name="credentials_id"/>
                    </tql:properties>
                </tql:content>
            </tql:node>
        </resource>
        <resourceBundle>integration_tqls_bundle</resourceBundle>
    </resource:XmlResourceWrapper>
    

    Thanks,

    Leslie

  • 0 in reply to   

    Hi Leslie,

    Thanks much for providing queries and View. I am able to extract the node discovered credential ID details.

    Regards,

    Sridhara.

  • 0   in reply to 

    Glad to see it works. You may mark this as Verified Answer. Slight smile