Ad Widget

Collapse

Two SNMP LLD *issues.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gary.W
    Junior Member
    • Aug 2018
    • 29

    #1

    Two SNMP LLD *issues.

    I have two SNMP-LLD issues.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    The first is about LLD-filter,
    snmpwalk-oid-structure is as follows: IF-MIB::ifName.snmpidex=snmpvalue,
    I want to filter the ifName.67108.* field in snmpidex, the purpose is ifName.67108.* item is not be created, trying to filter it did't succeed, I guess filter can only filter snmpivlaue? Any one knows how I should filter snmpidex?

    Regx:^IF-MIB::if.*.67108.{1,3}
    snmpwalk -v 2c -c xxxx 203.x.x.x ifname
    -------snmpidex----- -----=snmpvalue------

    IF-MIB::ifName.74 = STRING: port ethernet 10/9
    IF-MIB::ifName.75 = STRING: port ethernet 10/10
    IF-MIB::ifName.81 = STRING: port ethernet 11/1
    IF-MIB::ifName.67108864 = STRING: 10/4-link-switch-manage_ip
    IF-MIB::ifName.67108865 = STRING: 800c-natlinux-in
    IF-MIB::ifName.67108866 = STRING: 800c-natlinux-out
    IF-MIB::ifName.67108896 = STRING: se800c-se800b-ge-1

    Discovery rule:
    Key:net.if.discovery
    SNMP OID:discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATU S},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1 .1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR },1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1. 3]

    Item prototype:
    Interface {#IFNAME}({#IFALIAS}): Bits received
    key:net.if.in[ifHCInOctets.{#SNMPINDEX}]
    oid:1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}

    Click image for larger version  Name:	image_14130.jpg Views:	3 Size:	127.5 KB ID:	382814Click image for larger version  Name:	se800-filter3.jpg Views:	2 Size:	68.5 KB ID:	382816
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


    The second LLD is for monitor optical-interfaces LaserPower on juniper network devices. I need to create an Item prototypoid under the LLD, but I don't know how to deal with subsnmpidex in Item prototype.

    Oid-structure is as follows:JUNIPER-DOM-MIB::jnxDomCurrentLaneRxLaserPower.snmpidex.subsnm pidex=snmpvalue

    #snmpwalk -v 2c -c xxxxxxxx 119.x.x.x jnxDomCurrentLaneEntry | grep LaneRxLaserPower

    JUNIPER-DOM-MIB::jnxDomCurrentLaneRxLaserPower.515.0 = INTEGER: -4000 0.01 dbm
    JUNIPER-DOM-MIB::jnxDomCurrentLaneRxLaserPower.526.0 = INTEGER: -963 0.01 dbm
    JUNIPER-DOM-MIB::jnxDomCurrentLaneRxLaserPower.526.1 = INTEGER: -1145 0.01 dbm
    JUNIPER-DOM-MIB::jnxDomCurrentLaneRxLaserPower.526.2 = INTEGER: -1113 0.01 dbm
    JUNIPER-DOM-MIB::jnxDomCurrentLaneRxLaserPower.526.3 = INTEGER: -1014 0.01 dbm


    Discovery rule:
    discovery[{#IFOPERSTATUS},1.3.6.1.2.1.2.2.1.8,{#IFADMINSTATU S},1.3.6.1.2.1.2.2.1.7,{#IFALIAS},1.3.6.1.2.1.31.1 .1.1.18,{#IFNAME},1.3.6.1.2.1.31.1.1.1.1,{#IFDESCR },1.3.6.1.2.1.2.2.1.2,{#IFTYPE},1.3.6.1.2.1.2.2.1. 3,{#JNXDOMCURRENTTABLE},1.3.6.1.4.1.2636.3.60.1.1. 1,{#JNXDOMCURRENTLANEENTRY},1.3.6.1.4.1.2636.3.60. 1.2.1.1]

    Item prototyps:
    name:{#IFNAME}({#IFALIAS}): RxLaserPower-for-40G
    key:jnxDomCurrentLaneRxLaserPower[ifDescr.{#SNMPINDEX}.*]
    oid:1.3.6.1.4.1.2636.3.60.1.2.1.1.6.{#SNMPINDEX}.*


    I tried to modify the key of the Item prototyp to:
    key:jnxDomCurrentLaneRxLaserPower[ifDescr.{#SNMPINDEX}.$] or jnxDomCurrentLaneRxLaserPower[ifDescr.{#SNMPINDEX}.{#SNMPINDEX}] both does't work.



    Click image for larger version  Name:	image_14131.jpg Views:	1 Size:	143.7 KB ID:	382721

    Click image for larger version  Name:	Subsnmpidex-problem3.jpg Views:	4 Size:	264.8 KB ID:	382815
    Click image for larger version  Name:	Subsnmpidex-problem2.jpg Views:	2 Size:	188.7 KB ID:	382818

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
    Any advice or suggestions will be greatly appreciated.
    Attached Files
    Last edited by Gary.W; 23-07-2019, 08:07.
  • pgimuriman
    Junior Member
    • Mar 2021
    • 4

    #2
    I am having the same issue with `optical-interfaces LaserPower on juniper network devices` template. Has your issue resolved? if yes can you please provide template definition

    Comment

    Working...