10 Replies Latest reply: Apr 21, 2012 9:44 AM by Anders Lauri RSS

ADDM DNS and FQDN issues

RM Raja

Hi All,

 

We are getting the fully qualifed name when pulling up records. Following is the example

 

ie. abcd.google.com was pulled from the server; there were 17 servers in this condition; I would like to determine and also if it can be stripped.

 

I want see the abcd not abcd.google.com(I want stripped out google.com).

 

Help would be appreciated and thanks in Advance.

 

Please assist me on this ASAP, its production box issue.

 

Regards

Raju M.

  • 1. ADDM DNS and FQDN issues
    Maurizio Zaccaria

    Hello

     

    if you need this into CMDB you can modify the sync mapping files

    Maurizio

  • 2. Re: ADDM DNS and FQDN issues
    Anders Lauri

    Hi,

     

    As "mzaccari" said, you can either modify the sync. mapping files for this or you can perform a batch job within the CMDB/ARS that does this. I believe here the second option would be more suitable since you get the overhead of requiring modification of the sync. mapping files each time you upgrade the monthly TKU.

  • 3. ADDM DNS and FQDN issues
    Nikola Vukovljak

    If you are not seeing this with other servers that you are scanning then this also suggests that they are configured differently to others. ADDM platform scripts are fully visible via the Administration tab and you can see exactly what ADDM is running to obtain the various information about the hosts.

  • 4. ADDM DNS and FQDN issues
    RM Raja

    HI Maurizio, Anders,

     

    Where can i modify the CMDB sync files, could you please let me know?

     

     

    Regards

    Raju M.

  • 5. ADDM DNS and FQDN issues
    RM Raja

    HI Nikola,

     

    Thanks for the update.

     

    Yes, as you said I am seeing the FQDN for one of the CI in CMDB but for other CI's I ddi not see FQDN.(All those CI's are Linux Servers after running the Disocvery Job we can see them in CMDB).

     

    And I found the following scirpt in the ADDM Plot from.

     

    #getDeviceInfo

    echo ---START device_info

    ihn=`hostname 2>/dev/null`

    if ["$ihn" = "localhost" ]; then

        ihn=`hostname2>/dev/null`

    fi

    echo 'hostname:' $ihn

    echo'fqdn:' `hostname --fqdn 2>/dev/null`

    dns_domain=`hostname -d 2>/dev/null | sed -e 's/(none)//'`

    if ["$dns_domain" = "" -a -f /etc/resolv.conf ]; then

      dns_domain=`awk '/^(domain|search)/{sub(/\\\\000$/, "", $2); print $2; exit }' /etc/resolv.conf2>/dev/null`

    fi

    echo'dns_domain: ' $dns_domain

    echo'domain:' `hostname -y 2>/dev/null | sed -e's/(none)//'`

    os=""

     

    When i search for the results for the above command, i see the following results

     

    [root@abcd ~]# hostname

    abcd

    [root@abcd ~]# hostname --fqdn

    abcd

    [root@abcd ~]# hostname -d

    [root@abcd ~]# cat /etc/resolv.conf

    nameserver 1.1.1.1.1

    nameserver 1.1.1.13

    nameserver 1.1.1.123

    search google.com gsg.google.prod

    [root@abcd ~]#

     

    I just changed the server names to abcd.

     

    Regards

    Raju M.

  • 6. ADDM DNS and FQDN issues
    RM Raja

    Anybody is there on this?

  • 7. ADDM DNS and FQDN issues
    Anders Lauri

    Hi,

     

    Dont modify the core discovery scripts, extend the CMDB synchronization instead with a pattern. There is a great example within the header "Pattern Templates" under "Pattern Management", use that example, but use "Name" as the variable for computer system, instead of HostName.

     

    Best Regards,

    Anders L.

  • 8. ADDM DNS and FQDN issues
    RM Raja

    Hi,

     

    Can you please let me know where do i find the "Pattern Management" and also please brief out the how do i achive my issue to resolve it.

     

    Regards

    Raju M.

  • 9. ADDM DNS and FQDN issues
    RM Raja

    Any one is there on this?

     

    Regards

    Raju M.