Ad Widget

Collapse

Error retrieving SNMP STRING value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rnalrd
    Junior Member
    • Jun 2015
    • 9

    #1

    Error retrieving SNMP STRING value

    Hi,

    I'm trying to retrieve and store an SNMP STRING values, precisely .1.3.6.1.2.1.31.1.1.1.18.{#SNMPINDEX} (IF-MIB::ifAlias)

    Some interfaces have no value set others have a short string set:

    Code:
    IF-MIB::ifAlias.1 = STRING:
    IF-MIB::ifAlias.2 = STRING:
    IF-MIB::ifAlias.3 = STRING: DOWNLINK-BOL1
    IF-MIB::ifAlias.4 = STRING:
    IF-MIB::ifAlias.5 = STRING:
    IF-MIB::ifAlias.6 = STRING:
    IF-MIB::ifAlias.7 = STRING:
    IF-MIB::ifAlias.8 = STRING:
    IF-MIB::ifAlias.49 = STRING:
    IF-MIB::ifAlias.50 = STRING: BONC28 VODAFONE
    IF-MIB::ifAlias.1000 = STRING:
    IF-MIB::ifAlias.1001 = STRING:
    IF-MIB::ifAlias.1002 = STRING:
    IF-MIB::ifAlias.1003 = STRING:
    IF-MIB::ifAlias.1004 = STRING:
    IF-MIB::ifAlias.1005 = STRING:
    IF-MIB::ifAlias.1006 = STRING:
    IF-MIB::ifAlias.1007 = STRING:
    IF-MIB::ifAlias.3000 = STRING:
    IF-MIB::ifAlias.7000 = STRING:
    IF-MIB::ifAlias.20000 = STRING:
    IF-MIB::ifAlias.100000 = STRING:
    IF-MIB::ifAlias.100191 = STRING:
    IF-MIB::ifAlias.100255 = STRING:
    IF-MIB::ifAlias.300000 = STRING:
    No matter what type of information I set in the item prototype (character, text, numeric [unsigned]) I get these errors:

    Code:
    ifAlias.[fastethernet5]" became not supported: cannot convert value to numeric type
    ifAlias.[fastethernet2]" became not supported: cannot convert value to numeric type
    ifAlias.[gigabitethernet2]" became not supported: cannot convert value to numeric type
    ifAlias.[gigabitethernet1]" became not supported: cannot convert value to numeric type
    ifAlias.[fastethernet4]" became not supported: cannot convert value to numeric type
    ifAlias.[fastethernet3]" became not supported: cannot convert value to numeric type
    ifAlias.[fastethernet7]" became not supported: cannot convert value to numeric type
    ifAlias.[fastethernet1]" became not supported: cannot convert value to numeric type
    ifAlias.[fastethernet6]" became not supported: cannot convert value to numeric type
    ifAlias.[fastethernet8]" became not supported: cannot convert value to numeric type
    I really wonder what I'm doing wrong. I believe that "character" type of information should work just fine and this was my first choice, then I tried text and numeric.

    Thanks!
    Last edited by rnalrd; 25-09-2019, 08:19. Reason: typo
  • rnalrd
    Junior Member
    • Jun 2015
    • 9

    #2
    Found out I had some preprocessing which expected numbers. Removed and now it works flawlessly.

    Comment

    Working...