Ad Widget

Collapse

Help with custom discovery for my DWDM devices

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zvukarmiso
    Junior Member
    • May 2015
    • 15

    #1

    Help with custom discovery for my DWDM devices

    Hi

    I try to create my own template for the device.
    Something is going well and something is not.

    I have successfully imported mibs

    I created discovery first, I added items there.
    That works for me.
    Now I have a few problems that I can't move.

    1. how to make a condition that if the given card with the SNMP does not exist to give me an error ??

    2. I have the problem as follows. SNMP OID is 1.3.6.1.4.1.44217.1.3.1.10.10.1.2. {# SNMPINDEX}, snmp walk sends value 1.3.6.1.4.1.44217.1.3.1.10.10.1.27.1040200
    But I would need to adjust this value some 1040200 and then the first three throw away and the last 2 also throw away. So I would have left 02 and it indicates the position of the card in the chasis.
    Can you advise me how to define variables correctly?

    3. the problem is as follows, the value is number as follows
    1 - preAmplifier
    2 - booster
    3 - lineAmplifier
    How would I be able to name these names? Now I only get the numeric value there
    my entry is now Card {#EDFATYPE} slot {#SNMPINDEX}
    But the result is "Card 2 slot 1040200", and correctly should be "Card booster slot 02"

    I tried it through value mappings. But it didn't help me, can you give me some type of way to deal with it?

    4. my problem with which I can't move how to convert text to numbers
    snmp value is 268 dBm as text, but somehow I can't switch it to just 268
    I found something https://catonrug.blogspot.com/2019/0...rocessing.html but it doesn't work for me
    I also looked at the wiki as a regular. I can't turn it into a number.


    Could you advise me where I make mistakes? Thank you in advance for any advice
    Michal
  • zvukarmiso
    Junior Member
    • May 2015
    • 15

    #2
    Hello

    I started to wreck the wreck, but I have a few uncertainties that I can't move.

    I started to create a template and there discovery
    SNMP OID - Discovery [{# EDFATYPE}, 1.3.6.1.4.1.44217.1.3.1.10.10.1.2]
    then i created an item that is at the end of the snmp OID
    1.3.6.1.4.1.44217.1.1.1.1.10.1.1. {#SNMPINDEX}
    I set macros in the name template
    {$ CARD.EDFA.EDFATYPE.MATCHES} => ^. * $

    I set up a filter on behalf of the discovery
    {#EDFATYPE} matches {$ CARD.EDFA.EDFATYPE.MATCHES}

    When I did it this way and I gave check now I got the necessary equipment as shown in the picture

    Click image for larger version

Name:	SNMP_card_type.png
Views:	602
Size:	31.3 KB
ID:	396687

    The problem sets up if I want to define 2 items for discovery and set a filter there because I can't make dependencies between them.
    SNMP OID discovery [{# EDFATYPE}, 1.3.6.1.4.1.44217.1.3.1.10.10.1.2, {# CARDNAME}, 1.3.6.1.4.1.44217.1.1.1.1.10.1.4

    The problem is set by {#EDFATYPE}. these devices
    1040200
    1040500
    1041100
    image attached higher

    but {#CARDNAME} has many items.
    How to filter out that there are only 3 items that are only the first option?

    Click image for larger version

Name:	SNMP_card_name.png
Views:	577
Size:	33.3 KB
ID:	396688

    I set it up
    I set macros in the name template
    {$ CARD.EDFA.EDFATYPE.MATCHES} => ^. * $
    {$ CARD.EDFA.CARDNAME.MATCHES} => ^. * $

    I set a filter in the discovery menu
    {#EDFATYPE} matches {$ CARD.EDFA.EDFATYPE.MATCHES}
    {#CARDNAME} matches {$ CARD.EDFA.CARDNAME.MATCHES}

    Can you tell me how to make the right filters? because this way it works partially but then I have a mistake picture

    Click image for larger version

Name:	SNMP_card_discovery.png
Views:	586
Size:	30.0 KB
ID:	396689

    Alternatively, you can send link me a reasonable discovery link and how to properly set up filters
    well thank you

    Comment

    Working...