Finding endpoints


Problem: On certain Windows versions, the Find Endpoint job cannot locate the managing switch correctly.

Explanation: The Find Endpoint job does the following:

  1. Executes a traceroute command to the target, which allows BMC Network Automation to figure out the closest router to the target.
  2. On the closest router, it executes:
    • show arp to find the MAC address of the target and the interface of the target is returned.
    • show cdp neighbor to check if the interface of the target, if found, is actually connected to another device.
  3. If another device is connected to the interface, BMC Network Automation logs into the target and repeats step 2.
  4. Repeats step 3 until no neighbor is detected, which means that the target is connected to the current device.

For the Endpoint actions to work, all devices between the 'managing router' (closest router to the target) and the 'managing switch' (switch on which the target is connected) must all be managed by BMC Network Automation. Also, the current implementation only supports Cisco IOS and CatOS devices and all these devices must have cdp (Cisco Discovery Protocol) enabled.

User response: Make the following changes in the BCAN_DATA\global.properties file:

  1. Search for the word "trace". The following code snippet is an excerpt of the global.properties file:

    # Following are the values for Windows
    #tracerouteCmd=tracert -d
    #tracerouteRegex=^\\d+[\\s*|\\S*]*?(\\S*)$
    #tracerouteLastLine=7
    #
    # Following are the values for Linux
    #tracerouteCmd=tracepath -n
    #tracerouteRegex=^\\d+\\??:\\s*(\\S*)[\\s*|\\S*]*$
    #tracerouteLastLine=3
  2. In the Windows section, uncomment tracerouteLastLine by removing the '#' and then, change 7 to 4.
  3. Save the file and restart the web service.

    When you retry, the Find Endpoint job grabs the last line.

Related topic

Default-global-properties-file

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Network Automation 8.8