Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-11029

Discovery SNMP pattern retrieves "location" parameter as HEX instead of ASCII

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • None
    • Discovery 3.1.0
    • Assets Discovery
    • None

      Issue Summary

      Using Insight Discovery, when scanning SNMP network devices using our default patterns, SNMP_Deviceinfo_Default.pat, the “location” parameter is not being returned as HEX instead of ASCII

      Steps to Reproduce

      1. Set up an SNMP Device on the network
      2. Ensure through a SNMP tester tool or by running an SNMP walk, with numeric OIDs 1.3.6.1.2.1.1.6.0 that "Location" value is correctly set on the device.
      3. On the Discovery Tool, "Credentials" tab, set up "SNMP_V3" type as well as user and password.
      4. Run the Discovery Scan

      Expected Results

      Location value from the device should return correctly if found.
      In the following example, Location value should return: BE_304

      Actual Results

      SNMP_Deviceinfo_Default.pat returns the value in HEX (42455F333034) instead of ASCII (BE_304)

      The below can be seen in the discovery-xxxxx.log file:

      17.01.2022 14:14:55 : Using pattern: SNMP_Deviceinfo_Default.pat (v3.3.0)
      17.01.2022 14:14:55 : Sending message request...
      17.01.2022 14:14:55 : Processing 5 SNMP results.
      17.01.2022 14:14:56 : Command: 
          1.3.6.1.2.1.1.3.0;1.3.6.1.2.1.1.4.0;1.3.6.1.2.1.1.5.0;1.3.6.1.2.1.1.6.0;1.3.6.1.4.1.2021.4.5.0
          
      17.01.2022 14:14:56 : Result: 
      
      1.3.6.1.2.1.1.3.0: 76d 3h 48m
      1.3.6.1.2.1.1.4.0: +111111111, username@email.com
      1.3.6.1.2.1.1.5.0: hostname
      1.3.6.1.2.1.1.6.0: 42455F333034
      

      Workaround

      Until the current pattern is adjusted to fix that, you can converting Hex value to Ascii

        1. SNMP Tester.png
          387 kB
          Pablo Bartolome

            [JSDSERVER-11029] Discovery SNMP pattern retrieves "location" parameter as HEX instead of ASCII

            Kostiantyn Onyshchenko (Inactive) made changes -
            Status Original: Closed [ 6 ] New: Closed [ 6 ]
            Kostiantyn Onyshchenko (Inactive) made changes -
            Last Update On New: 11/Apr/2023 [ 2023-04-11 ]
            Status Original: Closed [ 6 ] New: Closed [ 6 ]
            Kostiantyn Onyshchenko (Inactive) made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            Kostiantyn Onyshchenko (Inactive) made changes -
            Status Original: In Progress [ 3 ] New: Waiting for Release [ 12075 ]
            Kostiantyn Onyshchenko (Inactive) made changes -
            Status Original: Gathering Impact [ 12072 ] New: In Progress [ 3 ]
            Kostiantyn Onyshchenko (Inactive) made changes -
            Status Original: Short Term Backlog [ 12074 ] New: Gathering Impact [ 12072 ]
            Kostiantyn Onyshchenko (Inactive) made changes -
            Status Original: Long Term Backlog [ 12073 ] New: Short Term Backlog [ 12074 ]
            Kostiantyn Onyshchenko (Inactive) made changes -
            Status Original: In Progress [ 3 ] New: Long Term Backlog [ 12073 ]
            Rostislav Pasechnikov (Inactive) made changes -
            Remote Link New: This issue links to "Assets Integrations › discovery-integration › bugfix-JSDSERVER-11029-discovery-snmp-pattern-retrieves-location-parameter-as-hex-instead-of-ascii (server-syd-bamboo)" [ 730675 ]
            Zakhar Listiev made changes -
            Assignee Original: vgedzhev [ 8a797fe2b442 ] New: Kostiantyn Onyshchenko [ b4eb96ad59e5 ]

              b4eb96ad59e5 Kostiantyn Onyshchenko (Inactive)
              9f03f4114502 Pablo Bartolome
              Affected customers:
              2 This affects my team
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: