Hostname Detection sub-tab
    • 27 Sep 2024
    • 1 Minute to read
    • Dark
      Light
    • PDF

    Hostname Detection sub-tab

    • Dark
      Light
    • PDF

    Article summary

    Hostname (network or serial) is automatically discovered when logged into the Nodegrid Platform, based on user access permissions. By default, Nodegrid devices include probes and matches for these device types: PDUs, NetApp, Console Servers, Device Consoles, and Service Processors.

    Nodegrid sends a probe and waits for a match. If no match, a second probe is sent. This is repeated until a match occurs, then the probe process stops. 

    Enable Hostname Detection

    After hostname detection is enabled, it runs only once and then reverts to disabled.

    1. Go to Managed Devices :: Devices.

    2. Click on the device Name (displays dialog).

    3. On the Access sub-tab, scroll down to locate and select Enable Hostname Detection checkbox. 

    4. Click Save.

    CLI Procedure

    1. Go to /settings/devices/<device name>/access

    2. Set enable_hostname_detection to yes

    3. Save the changes with commit

    [admin@nodegrid /]# /settings/devices/Device_Console_Serial/access/
    [admin@nodegrid /]# set enable_hostname_detection=yes
    [+admin@nodegrid /]# commit
    

    Create a Probe or Match

    1. Go to Managed Devices :: Auto Discovery :: Hostname Detection.

    2. Click Add (displays dialog).

    3. On String Type drop-down, select one (Match, Probe).

    4. On String, enter characters for Match or Probe.

      NOTE

      For String Type: Matches, RegEx expressions are allowed. Use the variable %H to indicate the location of the hostname.

    5. Click Save.

    CLI Procedure

    1. Go to /settings/auto_discovery/hostname_detection/string_settings

    2. Type add

    3. Use the set command to define string_type (match, probe)

    4. Use the set command to define a probe or match string

    5. Make active

    6. Save the changes with commit

      NOTE

      For Matches RegEx expressions are allowed. Use the variable %H to indicate the location of the hostname

    [admin@nodegrid /]# /settings/auto_discovery/hostname_detection/string_settings 
    [admin@nodegrid /]# add
    [admin@nodegrid /]# set string_type=match
    [+admin@nodegrid /]# set match_string=[\a\r]%H{I|L)ogin:
    [+admin@nodegrid /]# active
    [+admin@nodegrid /]# commit
    

    Delete a Probe or Match

    1. Go to Managed Devices :: Auto Discovery :: Hostname Detection.

    2. Select checkbox(es).

    3. Click Delete.

    4. On confirmation dialog, click OK.

    Move Hostname Detection Priorities Up

    1. Go to Managed Devices :: Auto Discovery :: Hostname Detection.

    2. Select the checkbox(es) of items.

    3. Click Up to move the sequence.

    Move Hostname Detection Priorities Down

    1. Go to Managed Devices :: Auto Discovery :: Hostname Detection.

    2. Select the checkbox(es) of items.

    3. Click Down to move the sequence.

    Modify Hostname Detection Global Setting

    1. Go to Managed Devices :: Auto Discovery :: Hostname Detection.

    2. Click Global Settings (displays dialog). 

    3. Enter Probe timeout (sec) (max time to wait for output) (default: 5)

    4. Enter Number of retries (number of times probe is resent if no output) (default: 3).

    5. Enter Discovered name updates device name checkbox (enabled by default).

      NOTE

       If disabled, no devices names are updated, even if a match is found.)

    6. Select New discovered device receives the name during conflict checkbox.

      NOTE

      If enabled, and multiple devices have the same name, the latest discovered device receives the name.

    7. Click Save.



    Was this article helpful?

    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence