Hostname detection mismatch or not being detected at all

Hostname detection mismatch or not being detected at all

The hostname detection depends on a sequence of interactions with the end device. Nodegrid will send the pre-configured "probes" (usually an ENTER) and expect the pre-defined "matches".

If there is no match to the pre-defined match strings, you will need to add a customized string as a new match.


The most important part is to find out a specific match that will isolate the hostname from any other string sent from the end device.

 

To help with that, we suggest to use a regular expression tool.


One online tool is https://regex101.com/   

Set it to python as it usually better suits the matching process in Nodegrid.


Then, paste the output from your device in the TEST STRING textbox and start with basic REGULAR EXPRESSION. Remember, the goal is to get a single match. For instance, using this device's output as an example: 







Once you find the right regular expression, just replace the portion of the hostname with %H (i.e. the keyword in Nodegrid that refers to the hostname).

In the example above: \s\(%H\)\s\(.*\)

Then, add this as a Match String in Nodegrid.
Via GUI
Go to Managed Devices, Auto Discovery, Hostname Detection, click on Add, and set String Type as Match, and enter the new string.

Via CLI
add /settings/auto_discovery/hostname_detection/string_settings/
set string_type=match 
set string=<new string>
commit
 

There may be other factors contributing to hostname detection mismatch. For example, if a probe is sent more than once due to retries, will the end device prompt the hostname again? 

 

You can enable data logging in the device to check what is actually being exchanged.

 


    • Related Articles

    • Enabling Hostname Detection

      Hostname Detection allows automatic discovery of target devices based on login banners and prompt. Discovered hostname will be used as target name in system.  Follow the link for how to video Enabling Hostname Detection
    • Enabling Hostname Detection

      Hostname Detection allows automatic discovery of target devices based on login banners and prompt. Discovered hostname will be used as target name in system. Configuration via WebUI 1. Login as admin and go to Access. 2. Select the port. For an ...
    • Creating a Hostname Detection String

      Hostname detection string let you customize de hostname detection function to suit your business and device needs. Learn how to customize a hostname detection string to auto-discover target devices on ZPE Systems' Nodegrid Manager Follow the link for ...
    • Enabling Hostname Detection

    • Creating a Hostname Detection String