DX Unified Infrastructure Management

 View Only

  • 1.  net_connect use profile name in OC inventory

    Posted Jun 23, 2025 05:55 AM

    Hi All, 
    Is it possible to use of "Hostname" configured in net_connect to display in OC inventory (instead of depending on DNS resolution)? The Hostname and IP address configured properly in net_connect profile.
    - hostname=servername.fqdn.com
    - ip=10.1.1.100

    It is not feasible to add host entry for all devices outside the environment which will not be registered in DNS.

    Regards

    Anu



  • 2.  RE: net_connect use profile name in OC inventory

    Broadcom Employee
    Posted Jun 23, 2025 08:58 AM

    Hi Anu,

    Check discovery_agent (at loglevel 5) on the monitoring hub. Does it show:

    [PerIpDiscovery-1, discovery_agent] Did not detect hostname for ##.#.###.##. getCanonicalHostName() returned input IP address.

    To workaround the problem of the monitored target host not resolving, try adding a complete host entry in (/etc/hosts) for <example_hostname> on the hub where the discovery_agent is deployed, e.g., IP address, FQDN and shortname-> ###.###.#.## myhost.example.com myhost

    Then rediscover the host using the OC setup wizard to see if it produces the desired result/preferred hostname in the OC Inventory Name column.

    Best Regards,
    Steve



    ------------------------------
    Steve Danseglio
    Senior Principal Support Engineer (Technical Support Engineer 5)
    Broadcom Software-IMS Division
    UIM Certified Expert
    KCSv6 Practices Certified
    Certified Customer Success Manager (CCSM) Level 1
    ------------------------------



  • 3.  RE: net_connect use profile name in OC inventory

    Posted Jun 23, 2025 11:13 PM

    Hi Steve, 

    It is not feasible to add host entry for all devices outside the environment which will not be registered in DNS. 

    Any other options?

    Thanks

    Anu




  • 4.  RE: net_connect use profile name in OC inventory

    Broadcom Employee
    Posted Jul 02, 2025 02:17 PM

    Hi Anu,

    A new feature was released in net_connect probe v. 4.01 to enable granular monitoring based on  net_connect profile
    KB Enable granular monitoring based on profile in net_connect probe




  • 5.  RE: net_connect use profile name in OC inventory

    Posted Jul 08, 2025 06:25 AM
    Edited by Anupama Purayannur Jul 08, 2025 06:31 AM

    Thanks @Samer Al Yasiri. Can you please provide more details on what these settings are? It is not clear from the documentation. 

    Is it this one
    net_connect AC Configuration

    Regards

    Anu




  • 6.  RE: net_connect use profile name in OC inventory

    Broadcom Employee
    Posted Jul 10, 2025 10:58 AM

    That is correct Anu, with the net_connect probe v. 4.01, you can use user-defined hostname instead of Ip address. 

    For example, hostname1 will appear in OC inventory and the source of the QOS and alarms based on the below configuration:

    In OC inventory, the entry will appear based on the hostname we defined in the net_connect profile.

    Thanks,
    Samer




  • 7.  RE: net_connect use profile name in OC inventory

    Posted Aug 07, 2025 04:23 AM

    Hi @Samer Al Yasiri

    We could achieve this by setting the sendqostoprofilename to yes in profiles. Is there a way to sendqostoprofilename to yes in all existing profiles other than updating one by one? I cannot think of a way to do this. But thought of checking anyway. 

    Thanks

    Anu

    -------------------------------------------



  • 8.  RE: net_connect use profile name in OC inventory

    Broadcom Employee
    Posted Aug 07, 2025 12:02 PM

    Hi Anu,

    Unfortunately, you have to update each profile manually.

    Thanks,
    Samer

    -------------------------------------------



  • 9.  RE: net_connect use profile name in OC inventory

    Posted Aug 11, 2025 11:59 AM

    This isn't specifically correct.

    Look into the controller probe callback "probe_config_set" - you can use this with pu to make changes. It's usually pretty straight forward to use something like excel to generate the list of commands if this is a one-off effort.

    @Luke Christiansen (hope that's the right Luke) has a tool that will also generate these commands with a lot more flexibility.

    And finally, if you need full control over it, look for a Lua script posted to this forum (search for nimbus.request) - there are lots of examples of automating such changes.

    -------------------------------------------